mirror of
https://github.com/wneessen/go-hibp.git
synced 2024-12-22 18:20:38 +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 {
|
||||
continue
|
||||
}
|
||||
if hc == 0 {
|
||||
continue
|
||||
}
|
||||
pwMatches = append(pwMatches, Match{
|
||||
Hash: fh,
|
||||
Count: hc,
|
||||
|
|
Loading…
Reference in a new issue