Skip to content

Commit

Permalink
util/maven: remove unnecessary code (#160)
Browse files Browse the repository at this point in the history
`*fb == "true"` covers the case of `*fb` being empty and returns false.
  • Loading branch information
cuixq authored Jan 13, 2025
1 parent d4049d2 commit d9c8b0d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions util/maven/string.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ func (fb *FalsyBool) interpolate(dictionary map[string]string) bool {
}

func (fb *FalsyBool) Boolean() bool {
if *fb == "" {
return false
}
return *fb == "true"
}

Expand Down

0 comments on commit d9c8b0d

Please sign in to comment.