fix: remove unnecessary conversion (#6258)

Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
This commit is contained in:
Zhizhen He 2023-08-14 21:14:09 +08:00 committed by GitHub
parent 141c760846
commit 5de473da1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 20 additions and 19 deletions

View file

@ -292,7 +292,7 @@ func TestCloudDNS(t *testing.T) {
if err != tc.expectedErr {
t.Fatalf("Test %d: Expected error %v, but got %v", ti, tc.expectedErr, err)
}
if code != int(tc.wantRetCode) {
if code != tc.wantRetCode {
t.Fatalf("Test %d: Expected returned status code %s, but got %s", ti, dns.RcodeToString[tc.wantRetCode], dns.RcodeToString[code])
}