fix(frontend): download node only when USE_SYSTEM_NODE is set to false (#5817)

This commit is contained in:
Peter Szalai 2022-09-02 16:02:46 +02:00 committed by GitHub
parent b643b34d30
commit 5d619249bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,10 +6,10 @@ node {
// If true, it will download node using above parameters.
// If false, it will try to use globally installed node.
if (project.hasProperty('useSystemNode') && project.getProperty('useSystemNode').toBoolean()) {
download = false
if (project.hasProperty('useSystemNode')) {
download = ! project.getProperty('useSystemNode').toBoolean()
} else {
download = true
download = false
}
// Version of node to use.