소스 검색

should be break not continue

Ryan Huber 5 년 전
부모
커밋
5d0d916fc9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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))
 		}