aboutsummaryrefslogtreecommitdiffhomepage
path: root/commands/server.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-02-05 15:01:15 +0100
committerBjørn Erik Pedersen <[email protected]>2024-02-05 15:03:03 +0100
commita80c3021ba6bfcaeb837568b06d379f2e67aa30a (patch)
tree945c3f426f136e39d751c4d4153bbfdef7e2db65 /commands/server.go
parent9df7b295bcfb59000f6ee675dfbbc53654f3d86c (diff)
downloadhugo-a80c3021ba6bfcaeb837568b06d379f2e67aa30a.tar.gz
hugo-a80c3021ba6bfcaeb837568b06d379f2e67aa30a.zip
source: Remove unused Filesystem structfix/dotfilererr-11993
Diffstat (limited to 'commands/server.go')
-rw-r--r--commands/server.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/commands/server.go b/commands/server.go
index bdf6e905a..e1a4b5cf5 100644
--- a/commands/server.go
+++ b/commands/server.go
@@ -497,9 +497,7 @@ func (c *serverCommand) Run(ctx context.Context, cd *simplecobra.Commandeer, arg
err := func() error {
defer c.r.timeTrack(time.Now(), "Built")
- var err error
- err = c.build()
- return err
+ return c.build()
}()
if err != nil {
return err