Skip to content

Commit e4b8dba

Browse files
committed
style: fix some of the warnings reported by ESLint
1 parent 398d065 commit e4b8dba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/crx3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if (process.stdin.isTTY && !hasSrcPaths) {
1818
console.log(config
1919
.helpText()
2020
// Drop "-" from list of args
21-
.replace(/\n-\s/g, (_, point) => `\n `)
21+
.replace(/\n-\s/g, () => '\n ')
2222
// Stylize shell commands
2323
.replace(/```sh\n+([\w\W]+?)\n+```/g, (_, sh) => `\u001b[1m${sh}\u001b[0m`)
2424
// Embolden Markdown stuff

test/lib/keypair.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const fs = require('fs');
22
const test = require('tape-catch');
33
const keypair = require('../../lib/keypair');
4-
const { KeyObject } = require('crypto');
4+
const {KeyObject} = require('crypto');
55

66
test('keypair', t => {
77
t.strictEqual(typeof keypair, 'function', 'Should export a function');
@@ -45,7 +45,7 @@ test('keypair', t => {
4545
fs.unlinkSync(keyPath);
4646
}
4747

48-
let mask = process.umask(0o000);
48+
const mask = process.umask(0o000);
4949
const failPath = 'forbidden-read-key';
5050
const writeOnly = 0o200;
5151
fs.writeFileSync(failPath, '', {mode: writeOnly});

0 commit comments

Comments
 (0)