Skip to content

Commit

Permalink
Drop extra if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
meatballhat committed Apr 26, 2022
1 parent 8fe4d79 commit cdb1730
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions altsrc/map_input_source.go
Expand Up @@ -249,11 +249,8 @@ func (fsm *MapInputSource) isSet(name string) bool {
return exists
}

if _, exists := nestedVal(name, fsm.valueMap); exists {
return exists
}

return false
_, exists := nestedVal(name, fsm.valueMap)
return exists
}

func incorrectTypeForFlagError(name, expectedTypeName string, value interface{}) error {
Expand Down

0 comments on commit cdb1730

Please sign in to comment.