summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--commands/server.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/commands/server.go b/commands/server.go
index 48e76da6b..09cf43b24 100644
--- a/commands/server.go
+++ b/commands/server.go
@@ -261,11 +261,6 @@ func (sc *serverCmd) server(cmd *cobra.Command, args []string) error {
s.RegisterMediaTypes()
}
- err = c.serve(sc)
- if err != nil {
- return err
- }
-
// Watch runs its own server as part of the routine
if sc.serverWatch {
@@ -288,7 +283,7 @@ func (sc *serverCmd) server(cmd *cobra.Command, args []string) error {
}
- return nil
+ return c.serve(sc)
}
func getRootWatchDirsStr(baseDir string, watchDirs []string) string {