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/concerns/snippets_actions.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/controllers/concerns/snippets_actions.rb') diff --git a/app/controllers/concerns/snippets_actions.rb b/app/controllers/concerns/snippets_actions.rb index 014232a7d05..bf2683034a8 100644 --- a/app/controllers/concerns/snippets_actions.rb +++ b/app/controllers/concerns/snippets_actions.rb @@ -8,13 +8,13 @@ module SnippetsActions # rubocop:disable Gitlab/ModuleWithInstanceVariables def raw - disposition = params[:inline] == 'false' ? 'attachment' : 'inline' + disposition = params[:inline] == "false" ? "attachment" : "inline" workhorse_set_content_type! send_data( convert_line_endings(@snippet.content), - type: 'text/plain; charset=utf-8', + type: "text/plain; charset=utf-8", disposition: disposition, filename: @snippet.sanitized_file_name ) @@ -28,6 +28,6 @@ module SnippetsActions private def convert_line_endings(content) - params[:line_ending] == 'raw' ? content : content.gsub(/\r\n/, "\n") + params[:line_ending] == "raw" ? content : content.gsub(/\r\n/, "\n") end end -- cgit v1.2.1