Skip to content

Commit

Permalink
Run formatter on code
Browse files Browse the repository at this point in the history
  • Loading branch information
patapancakes committed Apr 21, 2024
1 parent 4a017b0 commit 8f51cd8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion api/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
1 change: 0 additions & 1 deletion pokerogue-server.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ func main() {

flag.Parse()


// register gob types
gob.Register([]interface{}{})
gob.Register(map[string]interface{}{})
Expand Down

0 comments on commit 8f51cd8

Please sign in to comment.