Skip to content

Commit

Permalink
ESLint add rule no-void
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigok committed Mar 24, 2017
1 parent d82437f commit 3f31ab5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"vars": "all",
"args": "after-used"
}],
"no-void": 2,
"no-var": 2,
"one-var": [2, "never"],
"no-lonely-if": 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const createFileSystemStore = _.debounce(function() {
return readStream.pipe(writeStream);
}

let stream = void 0;
let stream = undefined;

const identify = function(err, data) {
if (err != null) {
Expand Down
2 changes: 1 addition & 1 deletion server/methods/loadHistory.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Meteor.methods({
if (ls != null) {
const firstMessage = messages[messages.length - 1];

if ((firstMessage != null ? firstMessage.ts : void 0) > ls) {
if ((firstMessage != null ? firstMessage.ts : undefined) > ls) {
delete options.limit;

const unreadMessages = RocketChat.models.Messages.findVisibleByRoomIdBetweenTimestampsNotContainingTypes(rid, ls, firstMessage.ts, hideMessagesOfType, {
Expand Down

0 comments on commit 3f31ab5

Please sign in to comment.