Skip to content

Commit 17a4977

Browse files
Sid-V5Planeshifter
andauthored
chore: fix JavaScript lint errors
PR-URL: #10307 Closes: #10000 Co-authored-by: Philipp Burckhardt <[email protected]> Reviewed-by: Philipp Burckhardt <[email protected]> Signed-off-by: Philipp Burckhardt <[email protected]>
1 parent 5c41472 commit 17a4977

File tree

1 file changed

+7
-6
lines changed
  • lib/node_modules/@stdlib/_tools/makie/plugins/makie-install-node-addons/lib

1 file changed

+7
-6
lines changed

lib/node_modules/@stdlib/_tools/makie/plugins/makie-install-node-addons/lib/main.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
// MODULES //
2222

23+
var proc = require( 'process' );
2324
var spawn = require( 'child_process' ).spawn;
2425

2526

@@ -81,9 +82,9 @@ function stderr( data ) {
8182
* @param {string} subpath - subdirectory path
8283
*/
8384
function plugin( dir, cwd, subpath ) {
85+
var child;
8486
var opts;
8587
var args;
86-
var proc;
8788

8889
opts = {};
8990
opts.cwd = dir;
@@ -98,11 +99,11 @@ function plugin( dir, cwd, subpath ) {
9899
// Target:
99100
args.push( 'install-node-addons' );
100101

101-
proc = spawn( 'make', args, opts );
102-
proc.on( 'error', onError );
103-
proc.stdout.on( 'data', stdout );
104-
proc.stderr.on( 'data', stderr );
105-
proc.on( 'close', onFinish );
102+
child = spawn( 'make', args, opts );
103+
child.on( 'error', onError );
104+
child.stdout.on( 'data', stdout );
105+
child.stderr.on( 'data', stderr );
106+
child.on( 'close', onFinish );
106107
}
107108

108109

0 commit comments

Comments
 (0)