Skip to content

Conversation

alingse
Copy link
Contributor

@alingse alingse commented Dec 15, 2024

What does this PR do?

fix a bug

btw, there should add a defer httpResp.Body.Close()

Related PRs and Issues

I create a linter to detect code that returns a non-relevant nilness error bug. I checked the top 1000 GitHub Go repositories and found this, all result listed in alingse/sundrylint#4

Closes: #[issue number that will be closed through this PR]

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, local variables)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Please let us know test plan followed

Please describe the tests(if any). Provide instructions how its affecting the coverage.

Checklist:

  • Have you read the Contributing Guidelines on issues?
  • My code follows the style guidelines of this project.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • New and existing unit tests pass locally with my changes.

Signed-off-by: alingse <alingse@foxmail.com>
Copy link

github-actions bot commented Dec 15, 2024

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you and congratulations 🎉 for opening your very first pull request in keploy

@shivamsouravjha
Copy link
Contributor

hey @alingse the changes look good, you can surely add the defer body close code in the same PR.

@alingse
Copy link
Contributor Author

alingse commented Dec 16, 2024

I have read the CLA Document and I hereby sign the CLA

alingse and others added 2 commits December 16, 2024 16:04
add defer httpResp.Body.Close()

Signed-off-by: alingse <alingse@foxmail.com>
@shivamsouravjha
Copy link
Contributor

Hey @alingse the linter pipeline is breaking, please fix the same!

@alingse
Copy link
Contributor Author

alingse commented Dec 17, 2024

Hey @alingse the linter pipeline is breaking, please fix the same!

ok, I will fix it later(after work)

Signed-off-by: alingse <alingse@foxmail.com>
alingse and others added 2 commits December 17, 2024 21:39
Copy link
Contributor

@shivamsouravjha shivamsouravjha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the linter is failing perhaps running gofmt can fix it

Signed-off-by: alingse <alingse@foxmail.com>
@alingse
Copy link
Contributor Author

alingse commented Dec 20, 2024

@shivamsouravjha I have update the commit , go fmt the file.

@shivamsouravjha shivamsouravjha merged commit f523fd6 into keploy:main Dec 20, 2024
18 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants