aboutsummaryrefslogtreecommitdiffhomepage
path: root/commands/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/server.go')
-rw-r--r--commands/server.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/commands/server.go b/commands/server.go
index e803d4824..bdf6e905a 100644
--- a/commands/server.go
+++ b/commands/server.go
@@ -495,19 +495,16 @@ func (c *serverCommand) Run(ctx context.Context, cd *simplecobra.Commandeer, arg
}
- var close func()
err := func() error {
defer c.r.timeTrack(time.Now(), "Built")
var err error
- close, err = c.build()
+ err = c.build()
return err
}()
if err != nil {
return err
}
- defer close()
-
return c.serve()
}