From 8bac080b8cc3aae63110b895677fa63e42dadc97 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 17 Oct 2019 16:39:55 +0000 Subject: code cleanup: rubocop: fix Style/CharacterLiteral and Style/ParenthesesAroundCondition in lib/redmine/wiki_formatting/textile/redcloth3.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18720 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/wiki_formatting/textile/redcloth3.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/redmine/wiki_formatting/textile/redcloth3.rb b/lib/redmine/wiki_formatting/textile/redcloth3.rb index a4b6f3bab..b52028205 100644 --- a/lib/redmine/wiki_formatting/textile/redcloth3.rb +++ b/lib/redmine/wiki_formatting/textile/redcloth3.rb @@ -673,7 +673,7 @@ class RedCloth3 < String block_applied = 0 @rules.each do |rule_name| - block_applied += 1 if ( rule_name.to_s.match /^block_/ and method( rule_name ).call( blk ) ) + block_applied += 1 if rule_name.to_s.match /^block_/ and method(rule_name).call(blk) end if block_applied.zero? if deep_code @@ -836,7 +836,7 @@ class RedCloth3 < String # Idea below : an URL with unbalanced parethesis and # ending by ')' is put into external parenthesis - if ( url[-1]==?) and ((url.count("(") - url.count(")")) < 0 ) ) + if url[-1] == ")" and ((url.count("(") - url.count(")")) < 0) url=url[0..-2] # discard closing parenth from url post = ")"+post # add closing parenth to post end -- cgit v1.2.3