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

@ -81,7 +81,7 @@ class Trace < ApplicationRecord
:content_type => content_type(attachable.path),
:identify => false)
else
super(attachable)
super
end
end

View file

@ -6,7 +6,7 @@ if defined?(ActiveRecord::ConnectionAdaptors::AbstractAdapter)
if e.is_a?(Timeout::Error) || e.is_a?(OSM::APITimeoutError)
e
else
super(e, sql)
super
end
end
end

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

View file

@ -18,7 +18,7 @@ module OpenStreetMap
def store_translations(locale, data, options = {})
locale = ::I18n::Locale::Tag::Rfc4646.tag(locale).to_s
super(locale, data, options)
super
end
end

View file

@ -4,7 +4,7 @@ module OpenStreetMap
def perform(mailer, mail_method, delivery_method, *args, **kwargs)
kwargs = args.pop if kwargs.empty? && args.last.is_a?(Hash)
super(mailer, mail_method, delivery_method, *args, **kwargs)
super
end
end
end

View file

@ -45,7 +45,7 @@ module OpenStreetMap
status = options.delete(:status) || :ok
head status, options
else
super(options)
super
end
end
@ -61,7 +61,7 @@ module OpenStreetMap
end
end
super(controller)
super
end
end
end

View file

@ -5,7 +5,7 @@ module OpenStreetMap
module Router
module ForceEncoding
def normalize_path(path)
super(path).force_encoding("UTF-8")
super.force_encoding("UTF-8")
end
end
end

View file

@ -2,7 +2,7 @@ require "rtlcss"
class RtlcssSCSSProcessor < SassC::Rails::ScssTemplate
def self.call(input)
output = super(input)
output = super
data = Rtlcss.flip_css(output[:data])
output.delete(:map)
output.merge(:data => data)

View file

@ -8,7 +8,7 @@ module OSM
# The base class for API Errors.
class APIError < RuntimeError
def initialize(message = "Generic API Error")
super(message)
super
end
def status