Skip to content

Commit

Permalink
appease rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
SlakrHakr committed Nov 15, 2024
1 parent c392284 commit 7f5e53a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lib/grape/dsl/headers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ module Headers
def header(key = nil, val = nil)
if key
if val
unless val.is_a?(String)
warn "Header value for '#{key}' is not a string. Converting to string."
end
warn "Header value for '#{key}' is not a string. Converting to string." unless val.is_a?(String)
header[key.to_s] = val.to_s
else
header.delete(key.to_s)
Expand Down
2 changes: 1 addition & 1 deletion lib/grape/endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -417,4 +417,4 @@ def build_helpers
Module.new { helpers.each { |mod_to_include| include mod_to_include } }
end
end
end
end

0 comments on commit 7f5e53a

Please sign in to comment.