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_. --- lib/api/helpers/headers_helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/api/helpers/headers_helpers.rb') diff --git a/lib/api/helpers/headers_helpers.rb b/lib/api/helpers/headers_helpers.rb index 7553af9d156..3af44a230b3 100644 --- a/lib/api/helpers/headers_helpers.rb +++ b/lib/api/helpers/headers_helpers.rb @@ -9,7 +9,7 @@ module API raise ArgumentError.new("Header value should be a string") end - header "X-Gitlab-#{key.to_s.split('_').collect(&:capitalize).join('-')}", value.to_s + header "X-Gitlab-#{key.to_s.split("_").collect(&:capitalize).join("-")}", value.to_s end end end -- cgit v1.2.1