From c7535b9c259804bba3c9a6114f42e4ffb3373eec Mon Sep 17 00:00:00 2001 From: bogem Date: Mon, 20 Feb 2017 13:50:34 +0500 Subject: commands: Remove flagChanged from commandeer --- commands/hugo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commands/hugo.go') diff --git a/commands/hugo.go b/commands/hugo.go index 49b0fc7e5..cfadd2262 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -461,13 +461,13 @@ func (c *commandeer) initializeFlags(cmd *cobra.Command) { } func (c *commandeer) setValueFromFlag(flags *flag.FlagSet, key string) { - if c.flagChanged(flags, key) { + if flagChanged(flags, key) { f := flags.Lookup(key) c.Set(key, f.Value.String()) } } -func (c *commandeer) flagChanged(flags *flag.FlagSet, key string) bool { +func flagChanged(flags *flag.FlagSet, key string) bool { flag := flags.Lookup(key) if flag == nil { return false -- cgit v1.2.3