Consistent styling on TODO comments

pull/34/head
Pancakes 6 months ago
parent 674ed2aa51
commit 9d8c6b88bf
No known key found for this signature in database
GPG Key ID: 5792877BFA27DC8F

@ -53,8 +53,8 @@ func Init(mux *http.ServeMux) error {
// savedata // savedata
mux.HandleFunc("POST /savedata/update", legacyHandleSaveData) mux.HandleFunc("POST /savedata/update", legacyHandleSaveData)
mux.HandleFunc("GET /savedata/delete", legacyHandleSaveData) // TODO use deleteSystemSave mux.HandleFunc("GET /savedata/delete", legacyHandleSaveData) // TODO: use deleteSystemSave
mux.HandleFunc("POST /savedata/clear", legacyHandleSaveData) // TODO use clearSessionData mux.HandleFunc("POST /savedata/clear", legacyHandleSaveData) // TODO: use clearSessionData
mux.HandleFunc("GET /savedata/newclear", legacyHandleNewClear) mux.HandleFunc("GET /savedata/newclear", legacyHandleNewClear)
// new session // new session

@ -217,7 +217,7 @@ const legacyClientSessionId = "LEGACY_CLIENT"
save = session save = session
var active bool 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 { if err != nil {
httpError(w, r, fmt.Errorf("failed to check active session: %s", err), http.StatusBadRequest) httpError(w, r, fmt.Errorf("failed to check active session: %s", err), http.StatusBadRequest)
return return
@ -304,7 +304,7 @@ func deleteSystemSave(w http.ResponseWriter, r *http.Request) {
} }
var active bool 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 { if err != nil {
httpError(w, r, fmt.Errorf("failed to check active session: %s", err), http.StatusInternalServerError) httpError(w, r, fmt.Errorf("failed to check active session: %s", err), http.StatusInternalServerError)
return return
@ -662,7 +662,7 @@ func handleGetSystemData(w http.ResponseWriter, r *http.Request) {
return return
} }
//TODO apply vouchers // TODO: apply vouchers
writeJSON(w, r, save) writeJSON(w, r, save)
} }

@ -14,7 +14,7 @@ func System(uuid []byte) (defs.SystemSaveData, error) {
return system, err return system, err
} }
// TODO this should be a transaction // TODO: this should be a transaction
compensations, err := db.FetchAndClaimAccountCompensations(uuid) compensations, err := db.FetchAndClaimAccountCompensations(uuid)
if err != nil { if err != nil {
return system, fmt.Errorf("failed to fetch compensations: %s", err) return system, fmt.Errorf("failed to fetch compensations: %s", err)

Loading…
Cancel
Save