Skip to content

Commit d0f9cec

Browse files
Fixed linting errors and extractData declaration in cli.js
1 parent e3d01b4 commit d0f9cec

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/cli/cli.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ const allEntries = !entriesFilter;
2727

2828
async function runApp() {
2929
try {
30-
extractedData = await mcodeApp(MCODEClient, fromDate, toDate, configFilepath, runLogFilepath, debug, allEntries);
31-
30+
const extractedData = await mcodeApp(MCODEClient, fromDate, toDate, configFilepath, runLogFilepath, debug, allEntries);
3231

3332
// Finally, save the data to disk
3433
const outputPath = './output';
@@ -43,8 +42,7 @@ async function runApp() {
4342
fs.writeFileSync(outputFile, JSON.stringify(bundle), 'utf8');
4443
});
4544
logger.info(`Successfully logged ${extractedData.length} mCODE bundle(s) to ${outputPath}`);
46-
47-
} catch (e) {
45+
} catch (e) {
4846
if (debug) logger.level = 'debug';
4947
logger.error(e.message);
5048
logger.debug(e.stack);

0 commit comments

Comments
 (0)