Skip to content

Commit

Permalink
Fix the linter (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith committed Sep 21, 2018
1 parent 08bb0e4 commit 6de5603
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@
"samples-test": "cd samples/ && npm link ../ && npm test && cd ../",
"test-no-cover": "mocha test/*.js",
"test": "npm run cover",
"lint": "eslint src/ samples/ system-test/ test/",
"lint": "eslint '**/*.js'",
"prettier": "prettier --write src/*.js src/*/*.js samples/*.js samples/*/*.js test/*.js test/*/*.js system-test/*.js system-test/*/*.js",
"docs": "jsdoc -c .jsdoc.js",
"publish-module": "node ../../scripts/publish.js pubsub",
"fix": "eslint --fix '**/*.js' && npm run prettier",
"generate-scaffolding": "repo-tools generate all && repo-tools generate lib_samples_readme -l samples/ --config ../.cloud-repo-tools.json"
},
"dependencies": {
Expand Down
6 changes: 6 additions & 0 deletions smoke-test/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
env:
mocha: true
rules:
node/no-unpublished-require: off
no-console: off
3 changes: 1 addition & 2 deletions src/connection-pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,10 @@ class ConnectionPool extends EventEmitter {
}
let elapsedTimeWithoutConnection = 0;
const now = Date.now();
let deadline;
if (this.noConnectionsTime) {
elapsedTimeWithoutConnection = now - this.noConnectionsTime;
}
deadline = now + (MAX_TIMEOUT - elapsedTimeWithoutConnection);
const deadline = now + (MAX_TIMEOUT - elapsedTimeWithoutConnection);
client.waitForReady(deadline, err => {
this.isGettingChannelState = false;
if (err) {
Expand Down

0 comments on commit 6de5603

Please sign in to comment.