Run formatter on code

This commit is contained in:
maru committed 2024-04-21 18:57:27 -04:00
1 parent 4a017b0f32
commit 8f51cd826c
3 files changed
+2 -3

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ func getTokenFromRequest(r *http.Request) ([]byte, error) {
if err != nil {
return nil, fmt.Errorf("failed to decode token: %s", err)
}
if len(token) != account.TokenSize {
return nil, fmt.Errorf("invalid token length: got %d, expected %d", len(token), account.TokenSize)
}
+1 -1
View File
@@ -210,7 +210,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
// TODO: make this not suck
if !active && r.URL.Path != "/savedata/clear"{
if !active && r.URL.Path != "/savedata/clear" {
httpError(w, r, fmt.Errorf("session out of date"), http.StatusBadRequest)
return
}
-1
View File
@@ -30,7 +30,6 @@ func main() {
flag.Parse()
// register gob types
gob.Register([]interface{}{})
gob.Register(map[string]interface{}{})