Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RocketChat
Rocket.Chat
Commits
3f31ab5f
Commit
3f31ab5f
authored
7 years ago
by
Rodrigo Nascimento
Browse files
Options
Downloads
Patches
Plain Diff
ESLint add rule `no-void`
parent
d82437fb
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.eslintrc
+1
-0
1 addition, 0 deletions
.eslintrc
packages/rocketchat-file-upload/server/config/configFileUploadFileSystem.js
+1
-1
1 addition, 1 deletion
...t-file-upload/server/config/configFileUploadFileSystem.js
server/methods/loadHistory.js
+1
-1
1 addition, 1 deletion
server/methods/loadHistory.js
with
3 additions
and
2 deletions
.eslintrc
+
1
−
0
View file @
3f31ab5f
...
@@ -48,6 +48,7 @@
...
@@ -48,6 +48,7 @@
"vars": "all",
"vars": "all",
"args": "after-used"
"args": "after-used"
}],
}],
"no-void": 2,
"no-var": 2,
"no-var": 2,
"one-var": [2, "never"],
"one-var": [2, "never"],
"no-lonely-if": 2,
"no-lonely-if": 2,
...
...
This diff is collapsed.
Click to expand it.
packages/rocketchat-file-upload/server/config/configFileUploadFileSystem.js
+
1
−
1
View file @
3f31ab5f
...
@@ -21,7 +21,7 @@ const createFileSystemStore = _.debounce(function() {
...
@@ -21,7 +21,7 @@ const createFileSystemStore = _.debounce(function() {
return
readStream
.
pipe
(
writeStream
);
return
readStream
.
pipe
(
writeStream
);
}
}
let
stream
=
void
0
;
let
stream
=
undefined
;
const
identify
=
function
(
err
,
data
)
{
const
identify
=
function
(
err
,
data
)
{
if
(
err
!=
null
)
{
if
(
err
!=
null
)
{
...
...
This diff is collapsed.
Click to expand it.
server/methods/loadHistory.js
+
1
−
1
View file @
3f31ab5f
...
@@ -71,7 +71,7 @@ Meteor.methods({
...
@@ -71,7 +71,7 @@ Meteor.methods({
if
(
ls
!=
null
)
{
if
(
ls
!=
null
)
{
const
firstMessage
=
messages
[
messages
.
length
-
1
];
const
firstMessage
=
messages
[
messages
.
length
-
1
];
if
((
firstMessage
!=
null
?
firstMessage
.
ts
:
void
0
)
>
ls
)
{
if
((
firstMessage
!=
null
?
firstMessage
.
ts
:
undefined
)
>
ls
)
{
delete
options
.
limit
;
delete
options
.
limit
;
const
unreadMessages
=
RocketChat
.
models
.
Messages
.
findVisibleByRoomIdBetweenTimestampsNotContainingTypes
(
rid
,
ls
,
firstMessage
.
ts
,
hideMessagesOfType
,
{
const
unreadMessages
=
RocketChat
.
models
.
Messages
.
findVisibleByRoomIdBetweenTimestampsNotContainingTypes
(
rid
,
ls
,
firstMessage
.
ts
,
hideMessagesOfType
,
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment