Skip to content

Commit cc7b4cb

Browse files
author
Mrunal Patel
authored
Merge pull request #139 from hmeng-19/remove_extra_else
remove extra else
2 parents 3c4fc86 + 4a8e72d commit cc7b4cb

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

cmd/ocitools/validate.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,9 @@ var bundleValidateCommand = cli.Command{
109109
errMsg = fmt.Sprintf("%d Errors detected:\n%s", i-1, errMsg)
110110
return errors.New(errMsg)
111111

112-
} else {
113-
fmt.Println("Bundle validation succeeded.")
114-
return nil
115112
}
113+
fmt.Println("Bundle validation succeeded.")
114+
return nil
116115
},
117116
}
118117

@@ -270,10 +269,9 @@ func supportedMountTypes(OS string, hostCheck bool) (map[string]bool, error) {
270269
supportedTypes["bind"] = true
271270

272271
return supportedTypes, nil
273-
} else {
274-
logrus.Warn("Checking linux mount types without --host-specific is not supported yet")
275-
return nil, nil
276272
}
273+
logrus.Warn("Checking linux mount types without --host-specific is not supported yet")
274+
return nil, nil
277275
}
278276

279277
func checkMounts(spec rspec.Spec, rootfs string, hostCheck bool) (msgs []string) {

0 commit comments

Comments
 (0)