Skip to content

Commit

Permalink
Remove handler.Run() on nil module (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
orlade-anz committed Nov 5, 2020
1 parent bac0507 commit 5147e09
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions main.go
Expand Up @@ -2,7 +2,6 @@ package main

import (
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
Expand Down Expand Up @@ -85,10 +84,6 @@ func main() {
AutomaticTemplates(fs, strings.Split(*templates, ",")...).
ServerSettings(*noCSS, !*disableLiveReload, true)

// Generate initial files so we don't get 404
handler.Run()
logrus.SetOutput(ioutil.Discard)

go watcher.WatchFile(func(i interface{}) {
logger.Info("Regenerating...")
m, err := func() (m *sysl.Module, err error) {
Expand Down

0 comments on commit 5147e09

Please sign in to comment.