mirror of https://github.com/docker/cli.git
d8af7812b5
cli/command/system/info.go:375:5: S1009: should omit nil check; len() for []github.com/docker/docker/api/types/system.NetworkAddressPool is defined as zero (gosimple)
if info.DefaultAddressPools != nil && len(info.DefaultAddressPools) > 0 {
^
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit
|
||
---|---|---|
.. | ||
testdata | ||
client_test.go | ||
cmd.go | ||
df.go | ||
dial_stdio.go | ||
events.go | ||
events_test.go | ||
info.go | ||
info_test.go | ||
inspect.go | ||
prune.go | ||
prune_test.go | ||
version.go | ||
version_test.go |