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>
This commit is contained in:
CrazyMax 2023-02-22 14:57:29 +01:00
parent fb61fde581
commit 7888fdee58
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7

View File

@ -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