sisoe24 / Nuke-Tools

Found unhandled promise JS-0328
Bug risk
Major
4 occurrences in this check
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the void operator
20	}
21}
22
23main();
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the void operator
299            return;
300        }
301
302        sendToNuke(setupCodeSnippet(knobFile));303    }
304
305    /**
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the void operator
246                ? syncKnobChangedSnippet(knobFile)
247                : syncKnobCodeSnippet(knobFile);
248
249        sendToNuke(codeSnippet);250    }
251
252    /**
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the void operator
226                vscode.window.showErrorMessage(`Failed to rename ${file} to ${newName}: ${error}`);
227            }
228
229            sleep(1000);230        }
231
232        this.refresh();