From 0ed4b29fe0aa3e93557569c6f803eafc5e228a37 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Thu, 22 Dec 2022 11:20:02 +0530 Subject: clean up long line --- main.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 77b1263..60112d8 100644 --- a/main.go +++ b/main.go @@ -20,9 +20,12 @@ func main() { 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) -- cgit