diff options
author | bogem <albertnigma@gmail.com> | 2016-11-23 12:40:50 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-01-02 17:01:12 +0100 |
commit | 6fb4f048e130b877b31ba215a1437911c3f26f5c (patch) | |
tree | 531f3bea267712deed37962b3ff992b8fb9b5a90 /commands | |
parent | be39ae5e117562c9c3975b9a5587e4b219bcac58 (diff) |
commands: Fix case in names of some methods
Diffstat (limited to 'commands')
-rw-r--r-- | commands/benchmark.go | 2 | ||||
-rw-r--r-- | commands/hugo.go | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/commands/benchmark.go b/commands/benchmark.go index ff982684a..88954ffd9 100644 --- a/commands/benchmark.go +++ b/commands/benchmark.go @@ -79,7 +79,7 @@ func benchmark(cmd *cobra.Command, args []string) error { t := time.Now() for i := 0; i < benchmarkTimes; i++ { - if err = resetAndbuildSites(false); err != nil { + if err = resetAndBuildSites(false); err != nil { return err } } diff --git a/commands/hugo.go b/commands/hugo.go index 32846f871..c4126a090 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -425,7 +425,7 @@ func watchConfig() { viper.OnConfigChange(func(e fsnotify.Event) { jww.FEEDBACK.Println("Config file changed:", e.Name) // Force a full rebuild - utils.CheckErr(reCreateAndbuildSites(true)) + utils.CheckErr(recreateAndBuildSites(true)) if !viper.GetBool("disableLiveReload") { // Will block forever trying to write to a channel that nobody is reading if livereload isn't initialized livereload.ForceRefresh() @@ -632,7 +632,7 @@ func getDirList() []string { return a } -func reCreateAndbuildSites(watching bool) (err error) { +func recreateAndBuildSites(watching bool) (err error) { if err := initSites(); err != nil { return err } @@ -642,7 +642,7 @@ func reCreateAndbuildSites(watching bool) (err error) { return Hugo.Build(hugolib.BuildCfg{CreateSitesFromConfig: true, Watching: watching, PrintStats: !quiet}) } -func resetAndbuildSites(watching bool) (err error) { +func resetAndBuildSites(watching bool) (err error) { if err := initSites(); err != nil { return err } |