Fix new rubocop warnings

This commit is contained in:
Tom Hughes 2023-12-05 18:13:13 +00:00
parent fe16876beb
commit 0c2e471708
7 changed files with 34 additions and 34 deletions

View file

@ -6,7 +6,7 @@
module OpenStreetMap
class Cors < Rack::Cors
def call(env)
status, headers, body = super env
status, headers, body = super(env)
headers["Cache-Control"] = "no-cache" if headers["Access-Control-Allow-Origin"]
[status, headers, body]
end