Skip to content

Commit

Permalink
Move var to the top of the function.
Browse files Browse the repository at this point in the history
  • Loading branch information
reid committed Sep 10, 2012
1 parent 6439183 commit 5dc9136
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/cli.js
Expand Up @@ -293,6 +293,8 @@ function runBatch(options) {
// the current agents.

client.getAgents(function (err, agents) {
var rl;

if (err) {
throw err;
}
Expand All @@ -304,7 +306,7 @@ function runBatch(options) {
if (agents.length > 0) {
submitBatch(client, batchOptions);
} else {
var rl = readline.createInterface(process.stdin, process.stderr);
rl = readline.createInterface(process.stdin, process.stderr);

error("Waiting for agents to connect at " + url + ".");

Expand Down

0 comments on commit 5dc9136

Please sign in to comment.