Skip to content

Commit

Permalink
fix embarrassing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
curusarn committed Jan 20, 2020
1 parent a7d367e commit 2fca0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ func newItemFromRecordForQuery(record records.EnrichedRecord, query query, debug
// pwdRawDisp = highlightMatchAlternative(pwdRawDisp)
useRawPwd = false
}
if hits == 0 {
if hits <= 0 {
return item{}, errors.New("no match for given record and query")
}
display := ""
Expand Down

0 comments on commit 2fca0bf

Please sign in to comment.