summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-17 16:39:55 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-17 16:39:55 +0000
commit8bac080b8cc3aae63110b895677fa63e42dadc97 (patch)
treeb28ecdb29335e9be6a64a02297a969cb3c0428cf /lib
parentcae3f78ebab10ccacacbd8f4192ac63a2790a12e (diff)
downloadredmine-8bac080b8cc3aae63110b895677fa63e42dadc97.tar.gz
redmine-8bac080b8cc3aae63110b895677fa63e42dadc97.zip
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
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/wiki_formatting/textile/redcloth3.rb4
1 files changed, 2 insertions, 2 deletions
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