fix lint issue

should drop = nil from declaration of var n; it is the zero value

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
pull/1643/head
CrazyMax 2 years ago
parent fb61fde581
commit 7888fdee58
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7

@ -946,7 +946,7 @@ func TestVarUnsupportedType(t *testing.T) {
}
func ptrstr(s interface{}) *string {
var n *string = nil
var n *string
if reflect.ValueOf(s).Kind() == reflect.String {
ss := s.(string)
n = &ss

Loading…
Cancel
Save