Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» Fixed comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lhbelfanti committed Sep 24, 2024
1 parent 763aa26 commit d5afc01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/api/search/criteria/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ func InsertExecutionHandlerV1(insertExecution InsertExecution) http.HandlerFunc

log.Info(ctx, "Criteria execution successfully inserted")
w.Header().Set("Content-Type", "application/json")
err = json.NewEncoder(w).Encode(response) // w.WriteHeader(http.StatusOK) is implicit set inside the encoder

err = json.NewEncoder(w).Encode(response) // w.WriteHeader(http.StatusOK) is implicitly set inside the encoder
if err != nil {
w.WriteHeader(http.StatusInternalServerError)
log.Error(ctx, err.Error())
Expand Down

0 comments on commit d5afc01

Please sign in to comment.