Skip to content

Commit 98ac406

Browse files
committed
rubocop
1 parent 78b8bc6 commit 98ac406

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/secure_headers/headers/clear_site_data.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def validate_config!(config)
4848
#
4949
# Returns a String of quoted values that are comma separated.
5050
def make_header_value(types)
51-
types.map { |t| "\"#{t}\""}.join(", ")
51+
types.map { |t| %("#{t}") }.join(", ")
5252
end
5353
end
5454
end

spec/lib/secure_headers/middleware_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module SecureHeaders
6666
end
6767

6868
it "allows opting out of cookie protection with OPT_OUT alone" do
69-
Configuration.default { |config| config.cookies = OPT_OUT}
69+
Configuration.default { |config| config.cookies = OPT_OUT }
7070

7171
# do NOT make this request https. non-https requests modify a config,
7272
# causing an exception when operating on OPT_OUT. This ensures we don't

spec/lib/secure_headers/view_helpers_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def content_tag(type, content = nil, options = nil, &block)
6767
end
6868

6969
if options.is_a?(Hash)
70-
options = options.map {|k, v| " #{k}=#{v}"}
70+
options = options.map { |k, v| " #{k}=#{v}" }
7171
end
7272
"<#{type}#{options}>#{content}</#{type}>"
7373
end

0 commit comments

Comments
 (0)