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/repositories_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/repositories_controller.rb')
-rw-r--r-- | app/controllers/repositories_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 08fa8c2d1..9be7878ce 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -264,7 +264,7 @@ class RepositoriesController < ApplicationController if params[:format] == 'diff' @diff = @repository.diff(@path, @rev, @rev_to) (show_error_not_found; return) unless @diff - filename = +"changeset_r#{@rev}" + filename = "changeset_r#{@rev}" filename << "_r#{@rev_to}" if @rev_to send_data @diff.join, :filename => "#{filename}.diff", :type => 'text/x-patch', |