Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
quackduck committed Dec 14, 2022
1 parent d19f345 commit 8c1a31f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rem.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ func main() {
return
}

// Mode specifics arguments
if flags.rmMode {
if hasOption, _ := argsHaveOption("help", "h"); hasOption {
fmt.Println(helpRmMode)
Expand Down Expand Up @@ -500,7 +499,7 @@ func argsHaveOption(long string, short string) (hasOption bool, foundAt int) {
}

func updateAndIgnoreIfHasOption(long string, short string, toUpdate *bool) {
if hasOption, i := argsHaveOption("force", "f"); hasOption {
if hasOption, i := argsHaveOption(long, short); hasOption {
if toUpdate != nil {
*toUpdate = true
}
Expand Down

0 comments on commit 8c1a31f

Please sign in to comment.