Skip to content

[patch] check for NaN and inifinte values when coercing to integer#1351

Open
BrownBear2 wants to merge 4 commits intobalderdashy:masterfrom
BrownBear2:patch-1
Open

[patch] check for NaN and inifinte values when coercing to integer#1351
BrownBear2 wants to merge 4 commits intobalderdashy:masterfrom
BrownBear2:patch-1

Conversation

@BrownBear2
Copy link

@sailsbot
Copy link

Hi @BrownBear2! It looks like your pull request title doesn’t quite conform to our guidelines. Please edit the title so that it starts with [proposal], [patch], [fixes #], or [implements #]. Once you've fixed it, post a comment below (e.g. "ok, fixed!") and we'll take a look!

@BrownBear2 BrownBear2 changed the title check for NaN and inifinte values when coercing to integer [patch] check for NaN and inifinte values when coercing to integer May 10, 2016
@BrownBear2
Copy link
Author

ok, fixed!

Copy link
Member

@mikermcneil mikermcneil left a comment

Choose a reason for hiding this comment

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

looks like there's a typo in isFinite. Also, would you mind using curly braces around the if..then? Otherwise, LGTM!

EDIT oops, just saw you already fixed that

Copy link
Member

@mikermcneil mikermcneil left a comment

Choose a reason for hiding this comment

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

@BrownBear2 So I think all that's left is a test, if you'd be so kind.

BrownBear2 added a commit to BrownBear2/waterline that referenced this pull request Feb 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants