add an all-in-one script for running tests; format and fix some code; add ci.yml
This commit is contained in:
@@ -198,10 +198,10 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
if unverified != nil {
|
||||
if existing := h.Manager.GetMatch(unverified.MatchID); existing != nil && existing.GameToken() == gameToken {
|
||||
gc = &auth.GameClaims{
|
||||
MatchID: existing.ID,
|
||||
Player1ID: existing.PlayerIDs()[0],
|
||||
Player2ID: existing.PlayerIDs()[1],
|
||||
RawToken: gameToken,
|
||||
MatchID: existing.ID,
|
||||
Player1ID: existing.PlayerIDs()[0],
|
||||
Player2ID: existing.PlayerIDs()[1],
|
||||
RawToken: gameToken,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user