mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
commands: Fix case in names of some methods
This commit is contained in:
parent
be39ae5e11
commit
6fb4f048e1
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue