Drop extra if condition
This commit is contained in:
parent
8fe4d792d1
commit
cdb1730b7d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user