mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 02:33:14 -04:00
chore: enable early-return and superfluous-else from revive (#7129)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -149,12 +149,11 @@ func split255(s string) []string {
|
||||
sx := []string{}
|
||||
p, i := 0, 255
|
||||
for {
|
||||
if i <= len(s) {
|
||||
sx = append(sx, s[p:i])
|
||||
} else {
|
||||
if i > len(s) {
|
||||
sx = append(sx, s[p:])
|
||||
break
|
||||
}
|
||||
sx = append(sx, s[p:i])
|
||||
p, i = p+255, i+255
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user