Explorar o código

Merge pull request #105 from slackhq/fix_lighthouse_check

should be break not continue
Ryan Huber %!s(int64=5) %!d(string=hai) anos
pai
achega
2c8b0ec7b1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lighthouse.go

+ 1 - 1
lighthouse.go

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