lib/sewing_kit/webpack/manifest.rb in sewing_kit-0.31.0 vs lib/sewing_kit/webpack/manifest.rb in sewing_kit-0.31.1

- old
+ new

@@ -62,13 +62,12 @@ def manifest instance.manifest end def instance - return @instance if @instance - mode = ENV['NODE_ENV'] || Rails.env.to_s - @instance = if mode == 'development' && ENV['SK_SIMULATE_PRODUCTION'] != '1' + + @instance ||= if mode == 'development' && ENV['SK_SIMULATE_PRODUCTION'] != '1' Development.new else Production.new end end