Drop extra if condition

This commit is contained in:
Dan Buch 2022-04-25 22:21:46 -04:00
parent 8fe4d792d1
commit cdb1730b7d
Signed by: meatballhat
GPG Key ID: A12F782281063434

View File

@ -249,11 +249,8 @@ func (fsm *MapInputSource) isSet(name string) bool {
return exists return exists
} }
if _, exists := nestedVal(name, fsm.valueMap); exists { _, exists := nestedVal(name, fsm.valueMap)
return exists return exists
}
return false
} }
func incorrectTypeForFlagError(name, expectedTypeName string, value interface{}) error { func incorrectTypeForFlagError(name, expectedTypeName string, value interface{}) error {