Skip to content

Conversation

@flovilmart
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Jun 15, 2017

Codecov Report

Merging #3933 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
src/ParseServer.js 88.53% <100%> (ø) ⬆️
src/RestWrite.js 93.29% <0%> (+0.38%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 92fa6f2...34db45e. Read the comment docs.

acinader
acinader previously approved these changes Jun 15, 2017
Copy link
Contributor

@acinader acinader left a 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.

const hasPushScheduledSupport = pushAdapter && push && scheduledPush;
const hasPushSupport = (pushAdapter && push) != undefined;
const hasPushScheduledSupport = hasPushSupport && (scheduledPush == true);
//const hasPushSupport = pushAdapter && push;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

const hasPushSupport = pushAdapter && push;
const hasPushScheduledSupport = pushAdapter && push && scheduledPush;
const hasPushSupport = (pushAdapter && push) != undefined;
const hasPushScheduledSupport = hasPushSupport && (scheduledPush == true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prefer === and '!==='

Copy link
Contributor

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.

@flovilmart
Copy link
Contributor Author

Yeah that's a bit silly!

acinader
acinader previously approved these changes Jun 15, 2017
Copy link
Contributor

@acinader acinader left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@flovilmart flovilmart merged commit 9d79ba1 into master Jun 15, 2017
@flovilmart flovilmart deleted the serverInfo-proper-values branch June 15, 2017 19:09
@flovilmart flovilmart modified the milestone: 2.5.0 Jun 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants