File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 ( / ` ` ` s h \n + ( [ \w \W ] + ?) \n + ` ` ` / g, ( _ , sh ) => `\u001b[1m${ sh } \u001b[0m` )
2424 // Embolden Markdown stuff
Original file line number Diff line number Diff line change 11const fs = require ( 'fs' ) ;
22const test = require ( 'tape-catch' ) ;
33const keypair = require ( '../../lib/keypair' ) ;
4- const { KeyObject } = require ( 'crypto' ) ;
4+ const { KeyObject} = require ( 'crypto' ) ;
55
66test ( '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 } ) ;
You can’t perform that action at this time.
0 commit comments