cmd/ctrld: make staticcheck happy

This commit is contained in:
Cuong Manh Le
2023-02-27 21:43:05 +07:00
committed by Cuong Manh Le
parent fb20d443c1
commit b0114dfaeb
5 changed files with 9 additions and 8 deletions

View File

@@ -209,9 +209,11 @@ func (uc *UpstreamConfig) SetupBootstrapIP() error {
switch ar := a.(type) {
case *dns.A:
uc.BootstrapIP = ar.A.String()
//lint:ignore S1023 false alarm?
break
case *dns.AAAA:
uc.BootstrapIP = ar.AAAA.String()
//lint:ignore S1023 false alarm?
break
}
}