Skip to content

Commit 3e1bf28

Browse files
committed
fix js syntax error
1 parent 27c7401 commit 3e1bf28

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bin/setup.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,10 @@ const apps = {
177177
};
178178

179179
function checkAppVersion(minimalVersion, app) {
180-
const curApp = apps[app] ?? apps['node'];
180+
let curApp = apps[app];
181+
if (apps[app] === undefined) {
182+
curApp = apps['node'];
183+
}
181184
return new Promise((resolve, reject) => {
182185
exec(curApp.command, (err, stdout) => {
183186
const version = stdout.trim();
@@ -239,7 +242,6 @@ function reportError(error) {
239242

240243
await installPackages().catch((reason) => reportError(reason));
241244
await removeFilesFromDirectory('bin/').catch((reason) => reportError(reason));
242-
await removeFilesFromDirectory('public/assets/logo.png').catch((reason) => reportError(reason));
243245

244246
if (repoRemoved) {
245247
process.stdout.write('\n');

0 commit comments

Comments
 (0)