Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't create a variable which is never used more than once, #refactor…

…ing.
  • Loading branch information...
commit 1896d397e1dece3a97b73d16aa3d3e9df26f3740 1 parent 9947343
@StanAngeloff authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 bin/cli.js
View
5 bin/cli.js
@@ -132,9 +132,8 @@ function verifyPhantomBinary(options, resume) {
options.phantom_version = false;
return resume();
}
- var childProcess = require('child_process'),
- command = options.phantom + ' --version';
- childProcess.exec(command, function(e, stdout, stderr) {
+ var command = options.phantom + ' --version';
+ require('child_process').exec(command, function(e, stdout, stderr) {
if (e) {
console.error.exception(e);
process.exit(1 << 3);
Please sign in to comment.
Something went wrong with that request. Please try again.