From: Albert Nigmatzianov Date: Fri, 24 Mar 2017 07:14:14 +0000 (+0500) Subject: commands: Fix case of createpath in new.go X-Git-Tag: v0.20~116 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9f0b02b898853280254fbe859eecfabd63c4fefb;p=brevno-suite%2Fhugo commands: Fix case of createpath in new.go --- diff --git a/commands/new.go b/commands/new.go index 7bab13e9..e2472af0 100644 --- a/commands/new.go +++ b/commands/new.go @@ -107,11 +107,11 @@ func NewContent(cmd *cobra.Command, args []string) error { return newUserError("path needs to be provided") } - createpath := args[0] + createPath := args[0] var kind string - createpath, kind = newContentPathSection(createpath) + createPath, kind = newContentPathSection(createPath) if contentType != "" { kind = contentType @@ -123,7 +123,7 @@ func NewContent(cmd *cobra.Command, args []string) error { return newSystemError(err) } - return create.NewContent(s, kind, createpath) + return create.NewContent(s, kind, createPath) } func doNewSite(fs *hugofs.Fs, basepath string, force bool) error {