mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: prevents warnings with EMBER_CLI being redefined (#16035)
Example error: ``` /__w/discourse/discourse/lib/tasks/assets.rake:3: warning: already initialized constant EMBER_CLI /__w/discourse/discourse/lib/tasks/assets.rake:3: warning: previous definition of EMBER_CLI was here ```
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
EMBER_CLI = ENV["EMBER_CLI_PROD_ASSETS"] != "0"
|
||||
if !defined?(EMBER_CLI)
|
||||
EMBER_CLI = ENV["EMBER_CLI_PROD_ASSETS"] != "0"
|
||||
end
|
||||
|
||||
task 'assets:precompile:before' do
|
||||
|
||||
|
||||
Reference in New Issue
Block a user