Linting fixes

This commit is contained in:
Gregory Kurtzer
2021-09-08 20:37:58 -07:00
parent 4b5e3fd6eb
commit f9b9c3a8c1
3 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
for _, arg := range args {
// Checking if container flag was set, then overwriting OptRoot
if OptContainer != "" {
if container.ValidSource(OptContainer) == true {
if container.ValidSource(OptContainer) {
OptRoot = container.RootFsDir(OptContainer)
} else {
wwlog.Printf(wwlog.ERROR, " %s is not a valid container", OptContainer)