diff options
author | gfyoung <gfyoung17@gmail.com> | 2018-09-26 06:45:43 +0300 |
---|---|---|
committer | gfyoung <gfyoung17@gmail.com> | 2018-09-26 08:43:49 +0300 |
commit | 12ee2753c1e27c0c9480a8e79db2463ba51ba3ec (patch) | |
tree | a53ca8e4a114799b314a6216193ad654144728e7 /app/controllers/projects/labels_controller.rb | |
parent | 912d068dc6411af03af85cabb6bcaacbe64b5e80 (diff) |
Enable even more frozen string in app/controllers
Enables frozen string for some vestigial files as
well as the following:
* app/controllers/projects/**/*.rb
* app/controllers/sherlock/**/*.rb
* app/controllers/snippets/**/*.rb
* app/controllers/users/**/*.rb
Partially addresses #47424.
Diffstat (limited to 'app/controllers/projects/labels_controller.rb')
-rw-r--r-- | app/controllers/projects/labels_controller.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/app/controllers/projects/labels_controller.rb b/app/controllers/projects/labels_controller.rb index 1fd4f0721a7..a0ce3b08d9f 100644 --- a/app/controllers/projects/labels_controller.rb +++ b/app/controllers/projects/labels_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Projects::LabelsController < Projects::ApplicationController include ToggleSubscriptionAction @@ -138,12 +140,7 @@ class Projects::LabelsController < Projects::ApplicationController end def flash_notice_for(label, group) - notice = ''.html_safe - notice << label.title - notice << ' promoted to ' - notice << view_context.link_to('<u>group label</u>'.html_safe, group_labels_path(group)) - notice << '.' - notice + ''.html_safe + "#{label.title} promoted to " + view_context.link_to('<u>group label</u>'.html_safe, group_labels_path(group)) + '.' end protected |