Fix new rubocop warnings

This commit is contained in:
Tom Hughes 2024-05-28 17:39:33 +01:00
parent d21cbc0464
commit d3d0da0328
9 changed files with 10 additions and 10 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
headers["Cache-Control"] = "no-cache" if headers["Access-Control-Allow-Origin"]
[status, headers, body]
end