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

Remove pre go1.8 code and cleanup #4933

Merged
merged 1 commit into from
Sep 22, 2017
Merged

Conversation

harshavardhana
Copy link
Member

@harshavardhana harshavardhana commented Sep 16, 2017

We don't need certain go1.7.x custom code anymore, since
we have migrated to go1.8

Description

Remove pre go1.8 code and cleanup

Motivation and Context

Migrate to go1.8 cleanup.

How Has This Been Tested?

Manually

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@codecov-io
Copy link

codecov-io commented Sep 18, 2017

Codecov Report

Merging #4933 into master will decrease coverage by 0.01%.
The diff coverage is 92.3%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4933      +/-   ##
==========================================
- Coverage   62.45%   62.43%   -0.02%     
==========================================
  Files         193      193              
  Lines       27641    27619      -22     
==========================================
- Hits        17262    17244      -18     
+ Misses       9147     9144       -3     
+ Partials     1232     1231       -1
Impacted Files Coverage Δ
cmd/notify-webhook.go 75.53% <92.3%> (+2.86%) ⬆️
cmd/xl-v1-common.go 84.61% <0%> (-5.13%) ⬇️
cmd/fs-v1-background-append.go 78.52% <0%> (-2.69%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6d7df1d...827f211. Read the comment docs.

if resp.StatusCode != http.StatusOK && resp.StatusCode != http.StatusNoContent {
return fmt.Errorf("Unable to lookup webhook endpoint %s response(%s)", urlStr, resp.Status)
}
return resp.Body.Close()
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't we also close resp.Body when status code != 2xx ?

Copy link
Member Author

Choose a reason for hiding this comment

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

We could potentially do that..

@harshavardhana
Copy link
Member Author

//cc @vadmeste @deekoder looking for reviews..

We don't need certain go1.7.x custom code anymore, since
we have migrated to go1.8
Copy link
Member

@vadmeste vadmeste left a comment

Choose a reason for hiding this comment

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

LGTM

@deekoder deekoder requested review from balamurugana and removed request for deekoder September 22, 2017 16:20
Copy link
Member

@balamurugana balamurugana left a comment

Choose a reason for hiding this comment

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

LGTM

@deekoder deekoder merged commit 330f79b into minio:master Sep 22, 2017
@harshavardhana harshavardhana deleted the remove branch September 22, 2017 21:10
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.

5 participants