From 5d0d916fc95afcc3cd5ed063f66a38af63ad96ef Mon Sep 17 00:00:00 2001 From: Ryan Huber Date: Tue, 17 Dec 2019 14:43:01 +0000 Subject: [PATCH] should be break not continue --- lighthouse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lighthouse.go b/lighthouse.go index 7974be4..778be61 100644 --- a/lighthouse.go +++ b/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)) }