clean up long line
Anirudh Oppiliappan x@icyphox.sh
Thu, 22 Dec 2022 11:20:02 +0530
1 files changed,
6 insertions(+),
3 deletions(-)
jump to
M
main.go
→
main.go
@@ -20,9 +20,12 @@ if err != nil {
log.Fatal(err) } - err = UnveilPaths([]string{c.Dirs.Static, c.Repo.ScanPath, c.Dirs.Templates}, "r") - if err != nil { - log.Fatalf("unveil: %w", err) + if err := UnveilPaths([]string{ + c.Dirs.Static, + c.Repo.ScanPath, + c.Dirs.Templates}, + "r"); err != nil { + log.Fatalf("unveil: %s", err) } mux := routes.Handlers(c)