mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-20 09:57:31 +00:00
all: fix nilness issues
Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:

committed by
Andrew Dunham

parent
c5208f8138
commit
a217f1fccf
@@ -99,13 +99,7 @@ func GetSerialNumbers(logf logger.Logf) ([]string, error) {
|
||||
}
|
||||
}
|
||||
|
||||
// if there were no serial numbers, check if any errors were
|
||||
// returned and combine them.
|
||||
if len(serials) == 0 && err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
logf("got serial numbers %v (errors: %s)", serials, err)
|
||||
logf("got serial numbers %v", serials)
|
||||
|
||||
return serials, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user