Merge pull request #105 from slackhq/fix_lighthouse_check

should be break not continue
This commit is contained in:
Ryan Huber 2019-12-17 09:18:57 -06:00 committed by GitHub
commit 2c8b0ec7b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ func (lh *LightHouse) ValidateLHStaticEntries() error {
for lhIP, _ := range lh.lighthouses { for lhIP, _ := range lh.lighthouses {
for ip, _ := range lh.staticList { for ip, _ := range lh.staticList {
if lhIP == ip { if lhIP == ip {
continue break
} }
return fmt.Errorf("Lighthouse %s does not have a static_host_map entry", IntIp(lhIP)) return fmt.Errorf("Lighthouse %s does not have a static_host_map entry", IntIp(lhIP))
} }