From 0befc3a23cf37565878629af13f704fc5730d9fb Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Thu, 29 Jun 2023 01:37:24 +0000 Subject: Fix RuboCop offense Style/RedundantSelfAssignmentBranch (#36919). git-svn-id: https://svn.redmine.org/redmine/trunk@22263 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/wiki_formatting/textile/redcloth3.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/redmine') diff --git a/lib/redmine/wiki_formatting/textile/redcloth3.rb b/lib/redmine/wiki_formatting/textile/redcloth3.rb index d77a0664b..f0595f438 100644 --- a/lib/redmine/wiki_formatting/textile/redcloth3.rb +++ b/lib/redmine/wiki_formatting/textile/redcloth3.rb @@ -498,7 +498,7 @@ class RedCloth3 < String c.starts_with?('wiki-class-') ? c : "wiki-class-#{c}" end.join(' ') if cls - id = id.starts_with?('wiki-id-') ? id : "wiki-id-#{id}" if id + id = "wiki-id-#{id}" if id && !id.start_with?('wiki-id-') atts = +'' atts << " style=\"#{style.join}\"" unless style.empty? -- cgit v1.2.3