Skip to content

Commit

Permalink
removed log and added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
myleshorton committed Sep 2, 2015
1 parent 5b68018 commit 4990152
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/github.com/getlantern/flashlight/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,13 @@ func Init(version string) (*Config, error) {

var bytes []byte
if bytes, err = cfg.fetchCloudConfig(); err == nil {
// bytes will be nil if the config is unchanged (not modified)
if bytes != nil {
mutate = func(ycfg yamlconf.Config) error {
log.Debugf("Merging cloud configuration")
cfg := ycfg.(*Config)
return cfg.updateFrom(bytes)
}
} else {
log.Debugf("bytes is nil when the config is unmodified")
}
} else {
log.Errorf("Could not fetch cloud config %v", err)
Expand Down

0 comments on commit 4990152

Please sign in to comment.