Fix lint.

pull/12319/head
Andriy Dzikh 2021-08-20 15:06:24 -07:00
parent 47afdc87df
commit 405235908d
1 changed files with 1 additions and 1 deletions

View File

@ -116,10 +116,10 @@ var mountCmd = &cobra.Command{
klog.Infof("Selecting IP for WSL. This may be incorrect...") klog.Infof("Selecting IP for WSL. This may be incorrect...")
ip, err = func() (net.IP, error) { ip, err = func() (net.IP, error) {
conn, err := net.Dial("udp", "8.8.8.8:80") conn, err := net.Dial("udp", "8.8.8.8:80")
defer conn.Close()
if err != nil { if err != nil {
return nil, err return nil, err
} }
defer conn.Close()
return conn.LocalAddr().(*net.UDPAddr).IP, nil return conn.LocalAddr().(*net.UDPAddr).IP, nil
}() }()
} else { } else {