diff options
author | gfyoung <gfyoung17@gmail.com> | 2018-09-13 22:42:05 -0700 |
---|---|---|
committer | gfyoung <gfyoung17@gmail.com> | 2018-09-18 21:22:45 -0700 |
commit | 73322a0e551bbbc42d429b15e7ad9fd375ab761d (patch) | |
tree | cfb28cb2ef99f11dbb055a81db283b8269e2e1ab /app/controllers/concerns/creates_commit.rb | |
parent | 2dac058de25dc6ed03d0ed6f8b099aa17cdc1cab (diff) | |
download | gitlab-ce-73322a0e551bbbc42d429b15e7ad9fd375ab761d.tar.gz |
Enable frozen string in app/controllers/**/*.rbrepo-forks/gitlab-ce-frozen-string-app-controller
Enables frozen string for the following:
* app/controllers/*.rb
* app/controllers/admin/**/*.rb
* app/controllers/boards/**/*.rb
* app/controllers/ci/**/*.rb
* app/controllers/concerns/**/*.rb
Partially addresses #47424.
Diffstat (limited to 'app/controllers/concerns/creates_commit.rb')
-rw-r--r-- | app/controllers/concerns/creates_commit.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/concerns/creates_commit.rb b/app/controllers/concerns/creates_commit.rb index 709c8aaf337..b3777fd2b0f 100644 --- a/app/controllers/concerns/creates_commit.rb +++ b/app/controllers/concerns/creates_commit.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module CreatesCommit extend ActiveSupport::Concern include Gitlab::Utils::StrongMemoize @@ -65,7 +67,7 @@ module CreatesCommit flash[:notice] = nil else target = different_project? ? "project" : "branch" - flash[:notice] << " You can now submit a merge request to get this change into the original #{target}." + flash[:notice] = flash[:notice] + " You can now submit a merge request to get this change into the original #{target}." end end end |