mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-02-22 08:31:30 +08:00
Consistent styling on TODO comments
This commit is contained in:
parent
674ed2aa51
commit
9d8c6b88bf
@ -53,8 +53,8 @@ func Init(mux *http.ServeMux) error {
|
||||
|
||||
// savedata
|
||||
mux.HandleFunc("POST /savedata/update", legacyHandleSaveData)
|
||||
mux.HandleFunc("GET /savedata/delete", legacyHandleSaveData) // TODO use deleteSystemSave
|
||||
mux.HandleFunc("POST /savedata/clear", legacyHandleSaveData) // TODO use clearSessionData
|
||||
mux.HandleFunc("GET /savedata/delete", legacyHandleSaveData) // TODO: use deleteSystemSave
|
||||
mux.HandleFunc("POST /savedata/clear", legacyHandleSaveData) // TODO: use clearSessionData
|
||||
mux.HandleFunc("GET /savedata/newclear", legacyHandleNewClear)
|
||||
|
||||
// new session
|
||||
|
@ -217,7 +217,7 @@ const legacyClientSessionId = "LEGACY_CLIENT"
|
||||
save = session
|
||||
|
||||
var active bool
|
||||
active, err = db.IsActiveSession(uuid, legacyClientSessionId) //TODO unfinished, read token from query
|
||||
active, err = db.IsActiveSession(uuid, legacyClientSessionId) // TODO: unfinished, read token from query
|
||||
if err != nil {
|
||||
httpError(w, r, fmt.Errorf("failed to check active session: %s", err), http.StatusBadRequest)
|
||||
return
|
||||
@ -304,7 +304,7 @@ func deleteSystemSave(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
var active bool
|
||||
active, err = db.IsActiveSession(uuid, legacyClientSessionId) //TODO unfinished, read token from query
|
||||
active, err = db.IsActiveSession(uuid, legacyClientSessionId) // TODO: unfinished, read token from query
|
||||
if err != nil {
|
||||
httpError(w, r, fmt.Errorf("failed to check active session: %s", err), http.StatusInternalServerError)
|
||||
return
|
||||
@ -662,7 +662,7 @@ func handleGetSystemData(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
//TODO apply vouchers
|
||||
// TODO: apply vouchers
|
||||
|
||||
writeJSON(w, r, save)
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ func System(uuid []byte) (defs.SystemSaveData, error) {
|
||||
return system, err
|
||||
}
|
||||
|
||||
// TODO this should be a transaction
|
||||
// TODO: this should be a transaction
|
||||
compensations, err := db.FetchAndClaimAccountCompensations(uuid)
|
||||
if err != nil {
|
||||
return system, fmt.Errorf("failed to fetch compensations: %s", err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user