mirror of
https://github.com/wneessen/go-hibp.git
synced 2024-11-22 21:00:51 +01:00
Make golinter happy
This commit is contained in:
parent
0af72e7207
commit
c33397ed39
1 changed files with 6 additions and 2 deletions
|
@ -251,8 +251,13 @@ func TestBreachedAccountWithoutTruncate(t *testing.T) {
|
|||
t.Error(err)
|
||||
return
|
||||
}
|
||||
if len(breachDetails) == 0 && !tc.shouldFail {
|
||||
t.Errorf("breach details for account %q are expected but none were returned", tc.accountName)
|
||||
return
|
||||
}
|
||||
|
||||
for _, b := range breachDetails {
|
||||
if len(breachDetails) > 0 {
|
||||
b := breachDetails[0]
|
||||
if tc.breachName != b.Name {
|
||||
t.Errorf("breach name for the account %q does not match. expected: %q, got: %q",
|
||||
tc.accountName, tc.breachName, b.Name)
|
||||
|
@ -261,7 +266,6 @@ func TestBreachedAccountWithoutTruncate(t *testing.T) {
|
|||
t.Errorf("breach domain for the account %q does not match. expected: %q, got: %q",
|
||||
tc.accountName, tc.breachDomain, b.Domain)
|
||||
}
|
||||
return
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue