Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
clean up constructor args
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffmcaffer committed Feb 22, 2017
1 parent 2a45385 commit 9081c5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const readline = require('readline');
const split = require('argv-split');
const Q = require('q');

const crawlerClient = new CrawlerClient(process.env.CRAWLER_SERVICE_URL || 'http://localhost:3000', process.env.CRAWLER_SERVICE_AUTH_TOKEN || 'secret');
const crawlerClient = new CrawlerClient();
let promise = Q();

const commands = getCommands();
Expand Down
2 changes: 1 addition & 1 deletion lib/crawlerClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const Q = require('q');

class CrawlerClient {

constructor(url, token) {
constructor(url = null, token = null) {
this.url = url || process.env.CRAWLER_SERVICE_URL || 'http://localhost:3000';
this.authToken = token || process.env.CRAWLER_SERVICE_AUTH_TOKEN || 'secret';
}
Expand Down

0 comments on commit 9081c5f

Please sign in to comment.