Remove an assignment that was never read
ineffassign noted that we're always overwriting `name` with something
else, so the "" is never read from anywhere (`var name string` causes ""
to be "assigned" anyways as it's the zero value)
@@ -243,8 +243,7 @@ func NewConfigDef(fieldName string, flag cli.Flag) *ConfigDef {
panic("empty field name")
}
- name := ""
-
+ var name string
if string(fieldName[0]) == strings.ToLower(string(fieldName[0])) {
name = fieldName
} else {
