brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lyubenblagoev <...@git.apache.org>
Subject [GitHub] brooklyn-client pull request: Close config file object (deferred c...
Date Fri, 18 Mar 2016 14:19:30 GMT
Github user lyubenblagoev commented on a diff in the pull request:

    https://github.com/apache/brooklyn-client/pull/9#discussion_r56662228
  
    --- Diff: io/config.go ---
    @@ -64,6 +65,8 @@ func (config *Config) Read() {
     	if err != nil {
     		error_handler.ErrorExit(err)
     	}
    +	defer fileToRead.Close()
    --- End diff --
    
    The same as above file; `os.OpenFile` returns file, nil or nil, err, but not both file
object and error.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message