Commit b87ca794 authored by cjihrig's avatar cjihrig Committed by Fedor Indutny
Browse files

lib: remove and restructure calls to isNaN()



Switch condition order to check for null before calling isNaN().
Also remove two unnecessary calls to isNaN() that are already
covered by calls to isFinite(). This commit targets v0.10, as
opposed to #7891, which targets master (suggested by
@bnoordhuis). Closes #7840.

Signed-off-by: default avatarFedor Indutny <fedor@indutny.com>
parent 71fc4d94
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment