mirror of
https://github.com/coredns/coredns.git
synced 2026-04-05 11:45:33 -04:00
lint(revive): fix unnecessary-stmt violations (#7978)
This commit is contained in:
@@ -65,7 +65,6 @@ func roundRobin(in []dns.RR) []dns.RR {
|
||||
func roundRobinShuffle(records []dns.RR) {
|
||||
switch l := len(records); l {
|
||||
case 0, 1:
|
||||
break
|
||||
case 2:
|
||||
if dns.Id()%2 == 0 {
|
||||
records[0], records[1] = records[1], records[0]
|
||||
|
||||
Reference in New Issue
Block a user