Skip to content

Commit

Permalink
#14: Skip padding results in the API response, which can be identif…
Browse files Browse the repository at this point in the history
…ied by having a zero count
  • Loading branch information
wneessen committed Jun 9, 2022
1 parent 05ea767 commit 8fe5b20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions password.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8fe5b20

Please sign in to comment.