sisoe24 / Nuke-Tools

Either all code paths should have explicit returns, or none of them JS-0045
Anti-pattern
Minor
5 months ago5 months old
Async function 'sendMessage' expected no return value
393        return;
394    }
395
396    return await sendData(getHost(), getPort(), JSON.stringify(composeMessage(editor)));397}
398
399export function sendCommand(command: string): Promise<{
Expected to return a value at the end of async function
 39        .then(function () {
 40            console.log(`Package updated: ${repo}`);
 41        })
 42        .catch(async function (err: { message: unknown }) { 43            vscode.window.showWarningMessage(
 44                `Failed to download package from GitHub: ${err.message}. Fallback on local zip.`
 45            );