From 62d7990b9bb30cf33ed87017c5c633d1cccc75c2 Mon Sep 17 00:00:00 2001 From: Toon Claes Date: Thu, 28 Feb 2019 19:57:34 +0100 Subject: Ran standardrb --fix on the whole codebase Inspired by https://twitter.com/searls/status/1101137953743613952 I decided to try https://github.com/testdouble/standard on our codebase. It's opinionated, but at least it's a _standard_. --- app/controllers/projects/notes_controller.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/controllers/projects/notes_controller.rb') diff --git a/app/controllers/projects/notes_controller.rb b/app/controllers/projects/notes_controller.rb index 3152a38fd8e..015de870b16 100644 --- a/app/controllers/projects/notes_controller.rb +++ b/app/controllers/projects/notes_controller.rb @@ -32,7 +32,7 @@ class Projects::NotesController < Projects::ApplicationController else render json: { resolved_by: note.resolved_by.try(:name), - discussion_headline_html: (view_to_html_string('discussions/_headline', discussion: discussion) if discussion) + discussion_headline_html: (view_to_html_string("discussions/_headline", discussion: discussion) if discussion), } end end @@ -48,7 +48,7 @@ class Projects::NotesController < Projects::ApplicationController render_json_with_notes_serializer else render json: { - discussion_headline_html: (view_to_html_string('discussions/_headline', discussion: discussion) if discussion) + discussion_headline_html: (view_to_html_string("discussions/_headline", discussion: discussion) if discussion), } end end @@ -65,7 +65,7 @@ class Projects::NotesController < Projects::ApplicationController @note ||= @project.notes.find(params[:id]) end - alias_method :awardable, :note + alias awardable note def finder_params params.merge(last_fetched_at: last_fetched_at, notes_filter: notes_filter) @@ -86,6 +86,6 @@ class Projects::NotesController < Projects::ApplicationController end def whitelist_query_limiting - Gitlab::QueryLimiting.whitelist('https://gitlab.com/gitlab-org/gitlab-ce/issues/42383') + Gitlab::QueryLimiting.whitelist("https://gitlab.com/gitlab-org/gitlab-ce/issues/42383") end end -- cgit v1.2.1