unveil: cleanup code in main.go
This commit is contained in:
parent
8c129f8889
commit
45d1c6c2ec
5
main.go
5
main.go
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue