mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 22:21:07 +03:00
One more error fix in the server command
And some other small code clean-up. See #1502
This commit is contained in:
parent
c5287e7817
commit
d48781badf
8 changed files with 26 additions and 23 deletions
|
@ -1,4 +1,4 @@
|
|||
// Copyright © 2013-14 Steve Francia <spf@spf13.com>.
|
||||
// Copyright © 2013-2015 Steve Francia <spf@spf13.com>.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
@ -94,7 +94,9 @@ func init() {
|
|||
}
|
||||
|
||||
func server(cmd *cobra.Command, args []string) error {
|
||||
InitializeConfig()
|
||||
if err := InitializeConfig(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if cmd.Flags().Lookup("disableLiveReload").Changed {
|
||||
viper.Set("DisableLiveReload", disableLiveReload)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue