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

Close config file object (deferred close) #9

Merged
merged 1 commit into from
Mar 19, 2016

Conversation

lyubenblagoev
Copy link
Contributor

Config file objects will be closed by the GC, but using the defer statement is always preferable.

@rdowner
Copy link
Contributor

rdowner commented Mar 18, 2016

Hi @lyubenblagoev and welcome to our project 😄

The Apache Software Foundation prefers contributors to have submitted a Contributor License Agreement, but for this small change it's not necessary IMO. If you would like to contribute more in the future, please consider submitting an ICLA, as described here.

Our Go experts @geomacy @robertgmoss, do you have any comments on this PR?

"os"
"path/filepath"

"github.com/apache/brooklyn-client/error_handler"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this change intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This came from the gofmt tool used by the vim-go plugin. It organizes imports automatically by path and third party packages are separated with blank line from standard library packages.

@geomacy
Copy link
Contributor

geomacy commented Mar 18, 2016

👍 looks good to me, many thanks for the contribution @lyubenblagoev !

@robertgmoss
Copy link
Contributor

LGTM

@aledsage
Copy link
Contributor

Thanks @lyubenblagoev - are you happy to submit a standard Contributor License Agreement, as described by @rdowner above? Can you let us know when you've done that and we'll very happily merge this!

@lyubenblagoev
Copy link
Contributor Author

@aledsage, I've completed and submitted ICLA by email, as described in the link provided by @rdowner.

@asfgit asfgit merged commit daf8fea into apache:master Mar 19, 2016
asfgit pushed a commit that referenced this pull request Mar 19, 2016
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.

6 participants