brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lyubenblagoev <>
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:
    --- Diff: io/config.go ---
    @@ -64,6 +65,8 @@ func (config *Config) Read() {
     	if err != nil {
    +	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 or file a JIRA ticket
with INFRA.

View raw message