From 1d70e6e9c922114099fdad06acf60d06fa48d210 Mon Sep 17 00:00:00 2001 From: schneems Date: Mon, 15 Oct 2018 17:16:26 -0500 Subject: [PATCH] Return if assets compiled is enabled --- lib/language_pack/rails4.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/language_pack/rails4.rb b/lib/language_pack/rails4.rb index a4a4b183a..27041f96b 100644 --- a/lib/language_pack/rails4.rb +++ b/lib/language_pack/rails4.rb @@ -68,7 +68,7 @@ def default_assets_cache def cleanup super - return unless assets_compile_enabled? + return if assets_compile_enabled? return unless Dir.exist?(default_assets_cache) FileUtils.remove_dir(default_assets_cache) end