mirror of
https://github.com/coredns/coredns.git
synced 2025-12-02 16:44:01 -05:00
fix: remove unnecessary conversion (#6258)
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
This commit is contained in:
@@ -28,7 +28,7 @@ func TestBlackLiesBitmapNoData(t *testing.T) {
|
||||
}
|
||||
}
|
||||
for _, b := range nsec.TypeBitMap {
|
||||
if uint16(b) == dns.TypeTLSA {
|
||||
if b == dns.TypeTLSA {
|
||||
t.Errorf("Type TLSA should not be present in the type bitmap: %v", nsec.TypeBitMap)
|
||||
}
|
||||
}
|
||||
@@ -50,7 +50,7 @@ func TestBlackLiesBitmapNameError(t *testing.T) {
|
||||
}
|
||||
}
|
||||
for _, b := range nsec.TypeBitMap {
|
||||
if uint16(b) == dns.TypeTLSA {
|
||||
if b == dns.TypeTLSA {
|
||||
t.Errorf("Type TLSA should not be present in the type bitmap: %v", nsec.TypeBitMap)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user