Remove a bunch of unused cruft

This commit is contained in:
James Mills
2022-10-05 11:11:40 +10:00
parent 06c8ce3410
commit a07f747eb1
25 changed files with 31 additions and 1542 deletions

View File

@@ -4,8 +4,8 @@ import (
"encoding/json"
"fmt"
"html/template"
"io/ioutil"
"net/http"
"os"
"path/filepath"
"strings"
"time"
@@ -99,7 +99,7 @@ func (s *Server) CacheHandler() httprouter.Handle {
var entry Entry
data, err := ioutil.ReadFile(fn)
data, err := os.ReadFile(fn)
if err != nil {
log.WithError(err).Error("error reading cached entry")
http.Error(w, "Internal Server Error", http.StatusInternalServerError)