We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ad69d5 commit cf61f10Copy full SHA for cf61f10
app/controllers/base/base_controller.rb
@@ -114,11 +114,7 @@ def add_warning(warning)
114
escaped_warning = CGI.escape(warning)
115
existing_warning = @sinatra.headers['X-Cf-Warnings']
116
117
- new_warning = if existing_warning.nil?
118
- escaped_warning
119
- else
120
- "#{existing_warning},#{escaped_warning}"
121
- end
+ new_warning = existing_warning.nil? ? escaped_warning : "#{existing_warning},#{escaped_warning}"
122
123
set_header('X-Cf-Warnings', new_warning)
124
end
spec/support/integration/setup.rb
@@ -1,4 +1,4 @@
1
-require "English"
+require 'English'
2
3
module IntegrationSetup
4
CC_START_TIMEOUT = 20
0 commit comments