unveil: cleanup code in main.go

This commit is contained in:
zak 2022-12-22 00:37:04 +10:00 committed by Anirudh Oppiliappan
parent 8c129f8889
commit 45d1c6c2ec
1 changed files with 3 additions and 2 deletions

View File

@ -20,8 +20,9 @@ func main() {
log.Fatal(err)
}
if err = UnveilPaths([]string{c.Dirs.Static, c.Repo.ScanPath, c.Dirs.Templates}, "r"); 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)
}
mux := routes.Handlers(c)