From 1548134ccbbe047b2dbe8d404640fe23671c8e08 Mon Sep 17 00:00:00 2001 From: maxlandon Date: Thu, 2 Nov 2023 15:34:36 +0100 Subject: [PATCH] Remove useless duplicate import --- completions.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/completions.go b/completions.go index 73b6e1f9..c00daec9 100644 --- a/completions.go +++ b/completions.go @@ -21,7 +21,6 @@ import ( "sync" "github.com/spf13/pflag" - flag "github.com/spf13/pflag" ) const ( @@ -185,7 +184,7 @@ func (c *Command) initializeCompletionStorage() { } if c.flagCompletionFunctions == nil { - c.flagCompletionFunctions = make(map[*flag.Flag]func(cmd *Command, args []string, toComplete string) ([]string, ShellCompDirective), 0) + c.flagCompletionFunctions = make(map[*pflag.Flag]func(cmd *Command, args []string, toComplete string) ([]string, ShellCompDirective), 0) } }