Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
rm no need break from switch statement
Browse files Browse the repository at this point in the history
  • Loading branch information
lainio committed Apr 24, 2024
1 parent 979a56a commit 66928cc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,6 @@ func jsonResponse(w http.ResponseWriter, d any, err error) {
c := http.StatusOK
switch {
case err == nil:
break
case errors.Is(err, errInternal):
c = http.StatusInternalServerError
case errors.Is(err, errBadRequest):
Expand Down

0 comments on commit 66928cc

Please sign in to comment.