DEV: Update to lastest rubocop-discourse

This commit is contained in:
Loïc Guitaut
2024-05-27 12:27:13 +02:00
committed by Loïc Guitaut
parent 3b6d4c830f
commit 2a28cda15c
164 changed files with 269 additions and 263 deletions

View File

@ -15,7 +15,7 @@ class ThemeJavascriptsController < ApplicationController
before_action :is_asset_path, :no_cookies, :apply_cdn_headers, only: %i[show show_map show_tests]
def show
raise Discourse::NotFound unless last_modified.present?
raise Discourse::NotFound if last_modified.blank?
return render body: nil, status: 304 if not_modified?
# Security: safe due to route constraint
@ -34,7 +34,7 @@ class ThemeJavascriptsController < ApplicationController
end
def show_map
raise Discourse::NotFound unless last_modified.present?
raise Discourse::NotFound if last_modified.blank?
return render body: nil, status: 304 if not_modified?
# Security: safe due to route constraint