summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-22 11:20:02 +0530
committerLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-22 11:20:02 +0530
commit0ed4b29fe0aa3e93557569c6f803eafc5e228a37 (patch)
treec7e9a89007253c0e64dabfb03fa485f37c4c0e2b
parent45d1c6c2ecf2f53f468d1eeef46aecb749e7086d (diff)
downloadlegit-0ed4b29fe0aa3e93557569c6f803eafc5e228a37.tar.gz
legit-0ed4b29fe0aa3e93557569c6f803eafc5e228a37.tar.bz2
legit-0ed4b29fe0aa3e93557569c6f803eafc5e228a37.zip
clean up long line
Diffstat (limited to '')
-rw-r--r--main.go9
1 files changed, 6 insertions, 3 deletions
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)