summaryrefslogtreecommitdiffhomepage
path: root/commands/server.go
diff options
context:
space:
mode:
authorbogem <[email protected]>2017-02-20 13:50:34 +0500
committerBjørn Erik Pedersen <[email protected]>2017-02-21 15:08:45 +0100
commitc7535b9c259804bba3c9a6114f42e4ffb3373eec (patch)
tree1700a7d865402d269e24799eb748ac5d4957e43f /commands/server.go
parenteb27c47fc5102e05945f3beb892a839284d56dc8 (diff)
downloadhugo-c7535b9c259804bba3c9a6114f42e4ffb3373eec.tar.gz
hugo-c7535b9c259804bba3c9a6114f42e4ffb3373eec.zip
commands: Remove flagChanged from commandeer
Diffstat (limited to 'commands/server.go')
-rw-r--r--commands/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/server.go b/commands/server.go
index 8e35d30e5..3e7673773 100644
--- a/commands/server.go
+++ b/commands/server.go
@@ -108,7 +108,7 @@ func server(cmd *cobra.Command, args []string) error {
c := newCommandeer(cfg)
- if c.flagChanged(cmd.Flags(), "disableLiveReload") {
+ if flagChanged(cmd.Flags(), "disableLiveReload") {
c.Set("disableLiveReload", disableLiveReload)
}
@@ -125,7 +125,7 @@ func server(cmd *cobra.Command, args []string) error {
if err == nil {
l.Close()
} else {
- if c.flagChanged(serverCmd.Flags(), "port") {
+ if flagChanged(serverCmd.Flags(), "port") {
// port set explicitly by user -- he/she probably meant it!
return newSystemErrorF("Server startup failed: %s", err)
}