Skip to content

Commit

Permalink
make lint
Browse files Browse the repository at this point in the history
  • Loading branch information
quzard committed Jan 15, 2025
1 parent 7cae066 commit f4843db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ func lookupFlag(name string) (*flag.Flag, error) {

// GetStringFlag returns the string value of the named flag
func GetStringFlag(name string) (string, error) {
if f, err := lookupFlag(name); err != nil {
f, err := lookupFlag(name)
if err != nil {
return "", err
} else {
return f.Value.String(), nil
}
return f.Value.String(), nil
}

// GetBoolFlag returns the bool value of the named flag
Expand Down

0 comments on commit f4843db

Please sign in to comment.