mirror of
https://github.com/wneessen/go-hibp.git
synced 2024-11-22 21:00:51 +01:00
#14: Skip padding
results in the API response, which can be identified by having a zero count
This commit is contained in:
parent
05ea767ee1
commit
8fe5b208a5
1 changed files with 3 additions and 0 deletions
|
@ -118,6 +118,9 @@ func (p *PwnedPassApi) ListHashesPrefix(pf string) ([]Match, *http.Response, err
|
||||||
if err != nil {
|
if err != nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if hc == 0 {
|
||||||
|
continue
|
||||||
|
}
|
||||||
pwMatches = append(pwMatches, Match{
|
pwMatches = append(pwMatches, Match{
|
||||||
Hash: fh,
|
Hash: fh,
|
||||||
Count: hc,
|
Count: hc,
|
||||||
|
|
Loading…
Reference in a new issue