diff options
author | Go MAEDA <maeda@farend.jp> | 2024-09-01 00:38:01 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2024-09-01 00:38:01 +0000 |
commit | 2fe36c41281252c5fb63ead8ec239c737a88468b (patch) | |
tree | 6ff46d0c1d4291d2d75fdd721694eb263747f398 /app/controllers/journals_controller.rb | |
parent | 8da72cb712dce17d6537cf71ab90b6d1959e37a1 (diff) | |
download | redmine-2fe36c41281252c5fb63ead8ec239c737a88468b.tar.gz redmine-2fe36c41281252c5fb63ead8ec239c737a88468b.zip |
Fix RuboCop offense Style/RedundantInterpolationUnfreeze (#39887).
Since interpolated strings are always unfrozen in Ruby 3.0 and later, the use of `+""` is now redundant.
git-svn-id: https://svn.redmine.org/redmine/trunk@23001 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/journals_controller.rb')
-rw-r--r-- | app/controllers/journals_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/journals_controller.rb b/app/controllers/journals_controller.rb index f7b821312..cbf545187 100644 --- a/app/controllers/journals_controller.rb +++ b/app/controllers/journals_controller.rb @@ -68,11 +68,11 @@ class JournalsController < ApplicationController if @journal user = @journal.user text = @journal.notes - @content = +"#{ll(Setting.default_language, :text_user_wrote_in, {:value => user, :link => "#note-#{params[:journal_indice]}"})}\n> " + @content = "#{ll(Setting.default_language, :text_user_wrote_in, {:value => user, :link => "#note-#{params[:journal_indice]}"})}\n> " else user = @issue.author text = @issue.description - @content = +"#{ll(Setting.default_language, :text_user_wrote, user)}\n> " + @content = "#{ll(Setting.default_language, :text_user_wrote, user)}\n> " end # Replaces pre blocks with [...] text = text.to_s.strip.gsub(%r{<pre>(.*?)</pre>}m, '[...]') |