Skip to content

Commit

Permalink
Refactor comments
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulPickhardt committed Jun 11, 2024
1 parent dfe50fc commit 1d2e7fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func checkAndProxy(w http.ResponseWriter, r *http.Request) {
return
}

// TODO: Make more checks on the body, e.g. validate the JSON structure
// Make more checks on the body, e.g. validate the JSON structure
// and whether the contained code can be parsed as a valid shortcut.

var jsonMap map[string]interface{}
Expand All @@ -112,7 +112,7 @@ func checkAndProxy(w http.ResponseWriter, r *http.Request) {
http.Error(w, "Invalid shortcut", http.StatusBadRequest)
return
}

// If the JSON contains the required keys, proxy the request
proxy(w, r, body)
return
Expand Down

0 comments on commit 1d2e7fe

Please sign in to comment.