unveil: cleanup code in main.go
This commit is contained in:
parent
8c129f8889
commit
45d1c6c2ec
1 changed files with 3 additions and 2 deletions
5
main.go
5
main.go
|
@ -20,8 +20,9 @@ func main() {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err = UnveilPaths([]string{c.Dirs.Static, c.Repo.ScanPath, c.Dirs.Templates}, "r"); err != nil {
|
err = UnveilPaths([]string{c.Dirs.Static, c.Repo.ScanPath, c.Dirs.Templates}, "r")
|
||||||
log.Fatal(err)
|
if err != nil {
|
||||||
|
log.Fatalf("unveil: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
mux := routes.Handlers(c)
|
mux := routes.Handlers(c)
|
||||||
|
|
Loading…
Reference in a new issue