removed extranneous value method on the generic type

This commit is contained in:
Summer Mousa
2014-04-15 09:57:11 -05:00
parent 13e88629f5
commit 1eaa882c3a
3 changed files with 1 additions and 6 deletions

View File

@@ -197,7 +197,7 @@ func lookupIntSlice(name string, set *flag.FlagSet) []int {
func lookupGeneric(name string, set *flag.FlagSet) interface{} {
f := set.Lookup(name)
if f != nil {
return (f.Value.(Generic)).Value()
return f.Value
}
return nil
}