zskarte / zskarte-client

Either all code paths should have explicit returns, or none of them JS-0045
Anti-pattern
Minor
8 months ago8 months old
Async arrow function expected a return value
15        if (result && !result.canceled && result.filePath) {
16          return await fs.promises.writeFile(result?.filePath?.toString(), params.data, { encoding: 'utf8' });
17        }
18        return;19      },
20    );
21