Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

fix wrong response data #325

wants to merge 2 commits into from

Conversation

mfdeveloper508
Copy link
Contributor

@mfdeveloper508 mfdeveloper508 commented Sep 20, 2023

@mfdeveloper508 mfdeveloper508 linked an issue Sep 20, 2023 that may be closed by this pull request
@codecov-commenter
Copy link

Codecov Report

Merging #325 (e0380bc) into master (ef2ee8a) will increase coverage by 0.04%.
The diff coverage is 100.00%.

❗ Current head e0380bc differs from pull request most recent head a5e46c4. Consider uploading reports for the commit a5e46c4 to get more accurate results

❗ 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 {
Copy link
Collaborator

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)
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong response data type in validate
3 participants