From ac9c8ccf3bba2b41968744800d808e703df96025 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 20 Jul 2017 13:17:45 +0900 Subject: [PATCH] Fix broken specs. --- .../tilt/es6_module_transpiler_template.rb | 2 +- lib/js_locale_helper.rb | 2 +- lib/pretty_text.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/es6_module_transpiler/tilt/es6_module_transpiler_template.rb b/lib/es6_module_transpiler/tilt/es6_module_transpiler_template.rb index 9ca2c8f2f45..e64ce08380b 100644 --- a/lib/es6_module_transpiler/tilt/es6_module_transpiler_template.rb +++ b/lib/es6_module_transpiler/tilt/es6_module_transpiler_template.rb @@ -41,7 +41,7 @@ JS end def self.reset_context - @ctx.dispose + @ctx&.dispose @ctx = nil end diff --git a/lib/js_locale_helper.rb b/lib/js_locale_helper.rb index fe9f1951923..2aa8d65a0f1 100644 --- a/lib/js_locale_helper.rb +++ b/lib/js_locale_helper.rb @@ -161,7 +161,7 @@ module JsLocaleHelper end def self.reset_context - @ctx.dispose + @ctx&.dispose @ctx = nil end diff --git a/lib/pretty_text.rb b/lib/pretty_text.rb index 40d000368fa..4c0d9550792 100644 --- a/lib/pretty_text.rb +++ b/lib/pretty_text.rb @@ -123,7 +123,7 @@ module PrettyText def self.reset_context @ctx_init.synchronize do - @ctx.dispose + @ctx&.dispose @ctx = nil end end