Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
Fix empyt flags (#894)
Browse files Browse the repository at this point in the history
Signed-off-by: Fabiano Chiareto Fernandes <[email protected]>
  • Loading branch information
fabianofernandeszup authored Mar 17, 2021
1 parent f0e6b60 commit dfa7402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/formula/input/flag/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (in InputManager) Inputs(cmd *exec.Cmd, setup formula.Setup, flags *pflag.F
}
}

if len(emptyInputs) > 0 {
if len(emptyFlags) > 0 {
return fmt.Errorf("these flags cannot be empty [%s]", strings.Join(emptyFlags, ", "))
}

Expand Down

0 comments on commit dfa7402

Please sign in to comment.