mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-28 08:27:42 +08:00
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:
parent
fb61fde581
commit
7888fdee58
@ -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…
x
Reference in New Issue
Block a user