diff --git a/altsrc/map_input_source.go b/altsrc/map_input_source.go index cc11fc5433..e065c7cc43 100644 --- a/altsrc/map_input_source.go +++ b/altsrc/map_input_source.go @@ -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 {