lint(revive): fix unnecessary-stmt violations (#7978)

This commit is contained in:
Ville Vesilehto
2026-03-30 03:02:03 +03:00
committed by GitHub
parent 867cd8fd6b
commit 6af8fd46fe
5 changed files with 45 additions and 46 deletions

View File

@@ -133,8 +133,7 @@ func resign(rd io.Reader, now time.Time) (why error) {
i := 0
for rr, ok := zp.Next(); ok; rr, ok = zp.Next() {
switch x := rr.(type) {
case *dns.RRSIG:
if x, ok := rr.(*dns.RRSIG); ok {
if x.TypeCovered != dns.TypeSOA {
continue
}