mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-29 17:05:46 +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 {
|
func ptrstr(s interface{}) *string {
|
||||||
var n *string = nil
|
var n *string
|
||||||
if reflect.ValueOf(s).Kind() == reflect.String {
|
if reflect.ValueOf(s).Kind() == reflect.String {
|
||||||
ss := s.(string)
|
ss := s.(string)
|
||||||
n = &ss
|
n = &ss
|
||||||
|
Loading…
x
Reference in New Issue
Block a user