fix embarrassing bug

pull/77/head v2.5.7
Simon Let 6 years ago
parent a7d367ed38
commit 2fca0bf755
  1. 2
      cmd/cli/main.go

@ -358,7 +358,7 @@ func newItemFromRecordForQuery(record records.EnrichedRecord, query query, debug
// pwdRawDisp = highlightMatchAlternative(pwdRawDisp) // pwdRawDisp = highlightMatchAlternative(pwdRawDisp)
useRawPwd = false useRawPwd = false
} }
if hits == 0 { if hits <= 0 {
return item{}, errors.New("no match for given record and query") return item{}, errors.New("no match for given record and query")
} }
display := "" display := ""

Loading…
Cancel
Save