Cleanup context.go

This commit is contained in:
Naveen Gogineni
2021-04-05 07:57:41 -04:00
parent 13ded1e7c4
commit 07e1fdf17d
21 changed files with 118 additions and 121 deletions

View File

@@ -138,7 +138,7 @@ func (f *TimestampFlag) Apply(set *flag.FlagSet) error {
// Timestamp gets the timestamp from a flag name
func (c *Context) Timestamp(name string) *time.Time {
if fs := lookupFlagSet(name, c); fs != nil {
if fs := c.lookupFlagSet(name); fs != nil {
return lookupTimestamp(name, fs)
}
return nil