Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git-scm.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2022-10-05 12:57:26 +0300
committerJeff King <peff@peff.net>2022-10-05 16:28:15 +0300
commit81ca2894cbbcba4b6246657d03cb2facc3daca38 (patch)
tree223bd1f3f3a3fcf123694e45733765ad6e04f178 /lib
parent73ed6e5cbc3b539af75c65a8eb5dfb8537b71c00 (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.rb2
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