Skip to content

Commit

Permalink
Revert code quality cheating attempts.
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Mazzotti <[email protected]>
  • Loading branch information
anmazzotti committed Oct 12, 2023
1 parent aa0860e commit 83fe08b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Empty file removed dummy
Empty file.
3 changes: 0 additions & 3 deletions internal/api/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ func WriteResponse(logger logr.Logger, writer http.ResponseWriter, response stri

// WriteResponseBytes is a wrapper to handle HTTP response writing errors with logging.
func WriteResponseBytes(logger logr.Logger, writer http.ResponseWriter, response []byte) {
if response == nil || len(response) == 0 {
return
}
if n, err := writer.Write(response); err != nil {
logger.Error(err, fmt.Sprintf("Could not write response, written %d bytes", n))
}
Expand Down

0 comments on commit 83fe08b

Please sign in to comment.