enable gosimple linter

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2023-03-11 22:43:45 +01:00
parent 709e775b13
commit 5a7619c019
6 changed files with 7 additions and 9 deletions

View File

@ -47,7 +47,7 @@ func cmdCheck(args *skel.CmdArgs) error {
defer store.Close()
containerIpFound := store.FindByID(args.ContainerID, args.IfName)
if containerIpFound == false {
if !containerIpFound {
return fmt.Errorf("host-local: Failed to find address added by container %v", args.ContainerID)
}