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:
Joffrey JAFFEUX
2022-02-23 10:51:31 +01:00
committed by GitHub
parent cecfc7ce79
commit 8244b4b163

View File

@ -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