Skip to content

Commit

Permalink
removed redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
myleshorton committed May 24, 2016
1 parent 242e189 commit 4fe5efb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/github.com/getlantern/flashlight/config/config.go
Expand Up @@ -78,12 +78,7 @@ func validateConfig(_cfg yamlconf.Config) error {
if !ok {
return fmt.Errorf("Config is not a flashlight config!")
}
if cfg.Client == nil {
return fmt.Errorf("No client config")
}
if cfg.Client.ChainedServers == nil {
return fmt.Errorf("No chained servers")
}

nc := len(cfg.Client.ChainedServers)

log.Debugf("Found %v chained servers in config on disk", nc)
Expand Down

0 comments on commit 4fe5efb

Please sign in to comment.