diff options
author | Jeff King <peff@peff.net> | 2022-10-05 12:57:26 +0300 |
---|---|---|
committer | Jeff King <peff@peff.net> | 2022-10-05 16:28:15 +0300 |
commit | 81ca2894cbbcba4b6246657d03cb2facc3daca38 (patch) | |
tree | 223bd1f3f3a3fcf123694e45733765ad6e04f178 /lib | |
parent | 73ed6e5cbc3b539af75c65a8eb5dfb8537b71c00 (diff) |
run rubocop --autocorrect-all --only Style/ZeroLengthPredicate
These should be safe, since they're both standard size methods.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/searchable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/searchable.rb b/lib/searchable.rb index 594582db..d91340a2 100644 --- a/lib/searchable.rb +++ b/lib/searchable.rb @@ -76,7 +76,7 @@ module Searchable } ref_hits << hit end - if ref_hits.size > 0 + if !ref_hits.empty? { category: category_name, term: keywords, matches: ref_hits } end end |