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
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2022-10-05 15:08:46 +0300
committerJeff King <peff@peff.net>2022-10-05 16:28:15 +0300
commitf6b9b0252fc91c1ae8325455c6faa49b4de2d0b0 (patch)
treebb00a6990beddc09391eba44794b834ffe2bd0bf
parent6a1d3bc891acd11e7826ab496a1902b004656687 (diff)
appease rubocop Style/TernaryParentheses
Note that we keep the parentheses around the call though.
-rw-r--r--lib/tasks/index.rake4
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