diff --git a/flag_string.go b/flag_string.go index e7bd412..aad4c43 100644 --- a/flag_string.go +++ b/flag_string.go @@ -90,10 +90,7 @@ func (c *Context) String(name string) string { func lookupString(name string, set *flag.FlagSet) string { f := set.Lookup(name) if f != nil { - parsed, err := f.Value.String(), error(nil) - if err != nil { - return "" - } + parsed := f.Value.String() return parsed } return ""