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

Replace deprecated methods usage with alternative methods #663

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

yharish991
Copy link
Contributor

@yharish991 yharish991 commented Aug 5, 2024

This PR replaces all Go standard library deprecated methods uswith the recommended alternatives.

@yharish991 yharish991 changed the title remove usage of deprecated methods and use alternative methods Replace deprecated methods usage with alternative methods Aug 5, 2024
Copy link
Contributor

@davewalter davewalter left a comment

Choose a reason for hiding this comment

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

Looks good. The only question was about commented-out code, but nothing that blocks this from being merged.

@@ -682,7 +682,7 @@ valid options configurations include percentages ('50%'), counts ('2'), and 'def
// if strings.Contains(req.URL.Path, "some-product-guid") {
// resp = &http.Response{
// StatusCode: http.StatusOK,
// Body: ioutil.NopCloser(bytes.NewBufferString(`{
// Body: io.NopCloser(bytes.NewBufferString(`{
Copy link
Contributor

Choose a reason for hiding this comment

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

This code is commented out. Can it be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did see this, but I was not exactly sure what this BeforeEach block, so left it as is. Will address this in a followup PR as this is not in the scope of this PR

@yharish991 yharish991 merged commit ecadaea into main Aug 5, 2024
1 check passed
@yharish991 yharish991 deleted the removeDeprecatedMethods branch August 5, 2024 20:48
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.

2 participants