-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix wrong response data #325
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #325 +/- ##
==========================================
+ Coverage 86.81% 86.86% +0.04%
==========================================
Files 36 36
Lines 5089 5093 +4
==========================================
+ Hits 4418 4424 +6
+ Misses 437 436 -1
+ Partials 234 233 -1 |
@@ -282,7 +282,12 @@ func deleteFile(logger log.Logger, repo ICLFileRepository) http.HandlerFunc { | |||
|
|||
w.Header().Set("Content-Type", "application/json; charset=utf-8") | |||
w.WriteHeader(http.StatusOK) | |||
json.NewEncoder(w).Encode(`{"error": null}`) | |||
|
|||
type response struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will you define this as a reusable type instead of duplicating it inside each method? Something like type ErrorResponse struct
.
if err != nil { | ||
fmt.Printf("Error decoding '%X' as EBCDIC: %v\n", lineIn, err) | ||
} | ||
lineOut, _ = encoding.EBCDIC.NewDecoder().String(lineIn) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been fixed on master
. Will you rebase or merge master into your branch and accept that version?
#316