mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Fix broken specs.
This commit is contained in:
parent
30ec87fcb5
commit
ac9c8ccf3b
3 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@ JS
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.reset_context
|
def self.reset_context
|
||||||
@ctx.dispose
|
@ctx&.dispose
|
||||||
@ctx = nil
|
@ctx = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -161,7 +161,7 @@ module JsLocaleHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.reset_context
|
def self.reset_context
|
||||||
@ctx.dispose
|
@ctx&.dispose
|
||||||
@ctx = nil
|
@ctx = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -123,7 +123,7 @@ module PrettyText
|
||||||
|
|
||||||
def self.reset_context
|
def self.reset_context
|
||||||
@ctx_init.synchronize do
|
@ctx_init.synchronize do
|
||||||
@ctx.dispose
|
@ctx&.dispose
|
||||||
@ctx = nil
|
@ctx = nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue