sisoe24 / Nuke-Tools

Void operators found JS-0098
Anti-pattern
Minor
5 months ago5 months old
Expected 'undefined' and instead saw 'void'
116 */
117export function cleanSettings(): void {
118    const file = path.join(".vscode", "settings.json");
119    void createDemoContent(file, "{}");120}
Expected 'undefined' and instead saw 'void'
140
141    context.subscriptions.push(
142        vscode.commands.registerCommand("nuke-tools.testRunInsideNuke", () => {
143            void socket.sendDebugMessage();144        })
145    );
146
Expected 'undefined' and instead saw 'void'
134
135    context.subscriptions.push(
136        vscode.commands.registerCommand("nuke-tools.runCodeInsideNuke", () => {
137            void socket.sendMessage();138        })
139    );
140
Expected 'undefined' and instead saw 'void'
115
116    context.subscriptions.push(
117        vscode.commands.registerCommand("nuke-tools.launchNukeOptArgs", () => {
118            void executables.launchPromptExecutable();119        })
120    );
121}
Expected 'undefined' and instead saw 'void'
 77
 78    context.subscriptions.push(
 79        vscode.commands.registerCommand("nuke-tools.createPySide2Project", () => {
 80            void nukeTemplate.createTemplate(); 81        })
 82    );
 83