Skip to content
Snippets Groups Projects
Commit 3f31ab5f authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

ESLint add rule `no-void`

parent d82437fb
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,7 @@
"vars": "all",
"args": "after-used"
}],
"no-void": 2,
"no-var": 2,
"one-var": [2, "never"],
"no-lonely-if": 2,
......
......@@ -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) {
......
......@@ -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, {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment