mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
DEV: Remove logical OR assignment of constants (#29201)
Constants should always be only assigned once. The logical OR assignment of a constant is a relic of the past before we used zeitwerk for autoloading and had bugs where a file could be loaded twice resulting in constant redefinition warnings.
This commit is contained in:

committed by
GitHub

parent
f3f37c9019
commit
322a3be2db
@ -145,7 +145,7 @@ class StaticController < ApplicationController
|
||||
redirect_to(destination, allow_other_host: false)
|
||||
end
|
||||
|
||||
FAVICON ||= -"favicon"
|
||||
FAVICON = -"favicon"
|
||||
|
||||
# We need to be able to draw our favicon on a canvas, this happens when you enable the feature
|
||||
# that draws the notification count on top of favicon (per user default off)
|
||||
|
Reference in New Issue
Block a user