all repos — legit @ 0ed4b29fe0aa3e93557569c6f803eafc5e228a37

fork of git.icyphox.sh/legit

clean up long line
Anirudh Oppiliappan x@icyphox.sh
Thu, 22 Dec 2022 11:20:02 +0530
commit

0ed4b29fe0aa3e93557569c6f803eafc5e228a37

parent

45d1c6c2ecf2f53f468d1eeef46aecb749e7086d

1 files changed, 6 insertions(+), 3 deletions(-)

jump to
M main.gomain.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)