Skip to content

Commit c01e5f7

Browse files
committed
fix lint errors and remove short-circuit on lint exit code
1 parent 1b9263e commit c01e5f7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
"scripts": {
2929
"test": "npm run lint && npm run coverage -- -R dot test/ --recursive",
30-
"lint": "jshint src/ examples/ test/ || true",
30+
"lint": "jshint src/ examples/ test/",
3131
"unit-test": "mocha --recursive",
3232
"coverage": "istanbul cover --include-all-sources _mocha --",
3333
"build": "webpack --config webpack.config.js",

src/commands/handlers/messaging.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ var handlers = {
131131
target: target,
132132
tags: command.tags,
133133
time: time
134-
})
134+
});
135135
},
136136

137137
RPL_WALLOPS: function(command) {

test/servertime.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe('src/commands/command.js', function () {
4242
tags: {}
4343
});
4444

45-
expect(cmd.getServerTime()).to.be.undefined;
45+
expect(cmd.getServerTime()).to.equal(undefined);
4646
});
4747

4848
it('should return undefined for empty time', function () {
@@ -52,7 +52,7 @@ describe('src/commands/command.js', function () {
5252
}
5353
});
5454

55-
expect(cmd.getServerTime()).to.be.undefined;
55+
expect(cmd.getServerTime()).to.equal(undefined);
5656
});
5757

5858
it('should return undefined for malformed time', function () {
@@ -62,7 +62,7 @@ describe('src/commands/command.js', function () {
6262
}
6363
});
6464

65-
expect(cmd.getServerTime()).to.be.undefined;
65+
expect(cmd.getServerTime()).to.equal(undefined);
6666
});
6767
});
6868
});

0 commit comments

Comments
 (0)