Skip to content

Return error on closing gcs write#93

Merged
jetstack-bot merged 1 commit intojetstack:masterfrom
j-fuentes:avoid-masking-gcs-errors
Feb 10, 2020
Merged

Return error on closing gcs write#93
jetstack-bot merged 1 commit intojetstack:masterfrom
j-fuentes:avoid-masking-gcs-errors

Conversation

@j-fuentes
Copy link
Member

No description provided.

@j-fuentes j-fuentes self-assigned this Feb 10, 2020
@jetstack-bot jetstack-bot added the dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. label Feb 10, 2020
@jetstack-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: j-fuentes

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jetstack-bot jetstack-bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 10, 2020
}

return nil
return err
Copy link
Member

Choose a reason for hiding this comment

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

Is this to keep a reference to the error in case something goes wrong in the defer? Could you add a comment to clarify this as its a bit strange.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, that's the reason.

I have added a comment.

Signed-off-by: Jose Fuentes <jsfuentescastillo@gmail.com>
@wwwil
Copy link
Member

wwwil commented Feb 10, 2020

/lgtm

@jetstack-bot jetstack-bot added the lgtm Indicates that a PR is ready to be merged. label Feb 10, 2020
@jetstack-bot jetstack-bot merged commit 9157c7a into jetstack:master Feb 10, 2020
@j-fuentes j-fuentes deleted the avoid-masking-gcs-errors branch February 10, 2020 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants