Skip to content

Commit cf61f10

Browse files
committed
Fix double quote
1 parent 2ad69d5 commit cf61f10

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

app/controllers/base/base_controller.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,7 @@ def add_warning(warning)
114114
escaped_warning = CGI.escape(warning)
115115
existing_warning = @sinatra.headers['X-Cf-Warnings']
116116

117-
new_warning = if existing_warning.nil?
118-
escaped_warning
119-
else
120-
"#{existing_warning},#{escaped_warning}"
121-
end
117+
new_warning = existing_warning.nil? ? escaped_warning : "#{existing_warning},#{escaped_warning}"
122118

123119
set_header('X-Cf-Warnings', new_warning)
124120
end

spec/support/integration/setup.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require "English"
1+
require 'English'
22

33
module IntegrationSetup
44
CC_START_TIMEOUT = 20

0 commit comments

Comments
 (0)