diff options
author | Jeff King <peff@peff.net> | 2022-10-05 15:08:46 +0300 |
---|---|---|
committer | Jeff King <peff@peff.net> | 2022-10-05 16:28:15 +0300 |
commit | f6b9b0252fc91c1ae8325455c6faa49b4de2d0b0 (patch) | |
tree | bb00a6990beddc09391eba44794b834ffe2bd0bf | |
parent | 6a1d3bc891acd11e7826ab496a1902b004656687 (diff) |
appease rubocop Style/TernaryParentheses
Note that we keep the parentheses around the call though.
-rw-r--r-- | lib/tasks/index.rake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/index.rake b/lib/tasks/index.rake index a57a16c5..eb2b998e 100644 --- a/lib/tasks/index.rake +++ b/lib/tasks/index.rake @@ -213,8 +213,8 @@ def index_doc(filter_tags, doc_list, get_content) path, sha = entry tool = File.basename path content = get_content.call sha - merge = (content.include? "can_merge") ? "" : " * #{tool}\n" - diff = (content.include? "can_diff") ? "" : " * #{tool}\n" + merge = content.include?("can_merge") ? "" : " * #{tool}\n" + diff = content.include?("can_diff") ? "" : " * #{tool}\n" [merge, diff] end |