diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2021-10-20 22:21:19 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2021-10-20 22:21:19 +0000 |
commit | 0dd9fbb806effd44327f9945542c1d05ef8544c1 (patch) | |
tree | e2f7005643283464671540596a1b80b4212a4602 /lib | |
parent | 7125fd70cebea60b4e692c33b37bd0ea71c6ffbf (diff) | |
download | redmine-0dd9fbb806effd44327f9945542c1d05ef8544c1.tar.gz redmine-0dd9fbb806effd44327f9945542c1d05ef8544c1.zip |
Update .rubocop_todo and fix Style/AndOr offense (#29914, #32938).
git-svn-id: http://svn.redmine.org/redmine/trunk@21253 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/wiki_formatting/links_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/wiki_formatting/links_helper.rb b/lib/redmine/wiki_formatting/links_helper.rb index 2e057df3e..a9c902b7d 100644 --- a/lib/redmine/wiki_formatting/links_helper.rb +++ b/lib/redmine/wiki_formatting/links_helper.rb @@ -52,7 +52,7 @@ module Redmine else # Idea below : an URL with unbalanced parenthesis and # ending by ')' is put into external parenthesis - if url[-1] == ")" and ((url.count("(") - url.count(")")) < 0) + if url[-1] == ")" && ((url.count("(") - url.count(")")) < 0) url = url[0..-2] # discard closing parenthesis from url post = ")" + post # add closing parenthesis to post end |