Skip to content

Commit

Permalink
mold: minor typos fix
Browse files Browse the repository at this point in the history
  • Loading branch information
streambinder committed Oct 11, 2021
1 parent 6649c8c commit d9c9d9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mold/count.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (db *Mold) Count(filter string) (int, error) {
}

if err != nil &&
(err.Error() == "prefix scans no result" || err.Error() == "prefix and search scans not found") {
(err.Error() == "prefix scans not found" || err.Error() == "prefix and search scans not found") {
return 0, nil
} else if err != nil {
return 0, err
Expand Down
2 changes: 1 addition & 1 deletion mold/select.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (db *Mold) Select(filter string, page, limit int) ([]_event.Event, error) {
}

if err != nil &&
(err.Error() == "prefix scans no result" || err.Error() == "prefix and search scans not found") {
(err.Error() == "prefix scans not found" || err.Error() == "prefix and search scans not found") {
return []_event.Event{}, nil
} else if err != nil {
return []_event.Event{}, err
Expand Down

0 comments on commit d9c9d9d

Please sign in to comment.