Drop extra if condition
@@ -249,13 +249,10 @@ func (fsm *MapInputSource) isSet(name string) bool {
return exists
}
- if _, exists := nestedVal(name, fsm.valueMap); exists {
+ _, exists := nestedVal(name, fsm.valueMap)
return exists
}
- return false
-}
-
func incorrectTypeForFlagError(name, expectedTypeName string, value interface{}) error {
valueType := reflect.TypeOf(value)
valueTypeName := ""
