-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Server info proper values #3933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3933 +/- ##
==========================================
+ Coverage 90.41% 90.44% +0.02%
==========================================
Files 114 114
Lines 7682 7682
==========================================
+ Hits 6946 6948 +2
+ Misses 736 734 -2
Continue to review full report at Codecov.
|
acinader
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unless you have a reason to leave in the commented out old logic, please remove.
src/ParseServer.js
Outdated
| const hasPushScheduledSupport = pushAdapter && push && scheduledPush; | ||
| const hasPushSupport = (pushAdapter && push) != undefined; | ||
| const hasPushScheduledSupport = hasPushSupport && (scheduledPush == true); | ||
| //const hasPushSupport = pushAdapter && push; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
src/ParseServer.js
Outdated
| const hasPushSupport = pushAdapter && push; | ||
| const hasPushScheduledSupport = pushAdapter && push && scheduledPush; | ||
| const hasPushSupport = (pushAdapter && push) != undefined; | ||
| const hasPushScheduledSupport = hasPushSupport && (scheduledPush == true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefer === and '!==='
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoa. i just tested undefined && undefined in the node repl. never would have guessed that. nice.
|
Yeah that's a bit silly! |
acinader
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
No description provided.