Skip to content

Commit 5a0c0c9

Browse files
committed
lint: dnsx/alg
1 parent 3cc2848 commit 5a0c0c9

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

intra/dnsx/alg.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1586,10 +1586,7 @@ func (t *dnsgateway) registerLocked(q, tid, uid string, algip4, algip6 netip.Add
15861586
logeif(!didRegister)("alg: algips (reg? %t / new? %t) (alg: %s+%s => real: %s) for %s@%s[%s]; real? %d, sec? %d; until (ans: %s / xips: %s)",
15871587
didRegister, newEntry, algip4, algip6, realips, q, tid, uid, len(realips), len(secres.ips), time.Until(ansttl), time.Until(xipsttl))
15881588

1589-
if !didRegister {
1590-
return false
1591-
}
1592-
return true
1589+
return didRegister
15931590
}
15941591

15951592
func (t *dnsgateway) take4Locked(q string, idx int) (netip.Addr, bool) {

0 commit comments

Comments
 (0)