Drop extra if condition
This commit is contained in:
parent
8fe4d792d1
commit
cdb1730b7d
@ -249,13 +249,10 @@ 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 {
|
||||||
valueType := reflect.TypeOf(value)
|
valueType := reflect.TypeOf(value)
|
||||||
valueTypeName := ""
|
valueTypeName := ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user