lint: Fix straightforward ESLint errors

This commit is contained in:
Richard Hansen 2021-05-11 16:56:06 -04:00 committed by webzwo0i
parent 59c03bde20
commit 6f2f20233f
9 changed files with 57 additions and 67 deletions

View file

@ -10,6 +10,8 @@
// unhandled rejection into an uncaught exception, which does cause Node.js to exit.
process.on('unhandledRejection', (err) => { throw err; });
const util = require('util');
if (process.argv.length !== 3) throw new Error('Use: node extractPadData.js $PADID');
// get the padID

View file

@ -4,6 +4,8 @@
// unhandled rejection into an uncaught exception, which does cause Node.js to exit.
process.on('unhandledRejection', (err) => { throw err; });
const util = require('util');
const startTime = Date.now();
const log = (str) => {