Fix Rubocop offenses
This commit is contained in:
@ -7,7 +7,7 @@ class ApplicationController < ActionController::Base
|
||||
MEMBER_ACTIONS = %i[destroy edit show update].freeze
|
||||
RENDER_HOST = CodeOcean::Config.new(:code_ocean).read[:render_host]
|
||||
LEGAL_SETTINGS = CodeOcean::Config.new(:code_ocean).read[:legal] || {}
|
||||
MONITORING_USER_AGENT = Regexp.compile(/updown\.io/).freeze
|
||||
MONITORING_USER_AGENT = /updown\.io/
|
||||
|
||||
before_action :deny_access_from_render_host
|
||||
after_action :verify_authorized, except: %i[welcome]
|
||||
|
@ -67,7 +67,7 @@ module ProformaService
|
||||
zip_file.map(&:name)
|
||||
end
|
||||
|
||||
filenames.select {|f| f[/\.xml$/] }.any?
|
||||
filenames.any? {|f| f[/\.xml$/] }
|
||||
rescue Zip::Error
|
||||
raise Proforma::InvalidZip
|
||||
end
|
||||
|
Reference in New Issue
Block a user