Skip to content

Commit

Permalink
Correct ternary in counter template literal.
Browse files Browse the repository at this point in the history
  • Loading branch information
atoreson committed Apr 28, 2020
1 parent 6d1fcb9 commit 0789ed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/www
Expand Up @@ -60,7 +60,7 @@ function shutdown() {

function waitForSocketsToClose(counter) {
if (counter > 0) {
console.log(`Waiting ${counter} more ${counter === 1 ? 'seconds' : 'second'} for all connections to close...`);
console.log(`Waiting ${counter} more ${counter !== 1 ? 'seconds' : 'second'} for all connections to close...`);
return setTimeout(waitForSocketsToClose, 1000, counter - 1);
}

Expand Down

0 comments on commit 0789ed5

Please sign in to comment.