Skip to content

Commit

Permalink
remove extraneous code
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-coleman authored and mattbaileyuk committed Jan 19, 2018
1 parent 7f3adf6 commit 40402d8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions jsonata.js
Original file line number Diff line number Diff line change
Expand Up @@ -1387,9 +1387,8 @@ var jsonata = (function() {
function isNumeric(n) {
var isNum = false;
if(typeof n === 'number') {
var num = parseFloat(n);
isNum = !isNaN(num);
if (isNum && !isFinite(num)) {
isNum = !isNaN(n);
if (isNum && !isFinite(n)) {
throw {
code: "D1001",
value: n,
Expand Down Expand Up @@ -2607,9 +2606,9 @@ var jsonata = (function() {
if(isFunction(lhs)) {
// this is function chaining (func1 ~> func2)
// λ($f, $g) { λ($x){ $g($f($x)) } }
result = yield * apply(chain, [lhs, func], environment, null);
result = yield * apply(chain, [lhs, func], environment);
} else {
result = yield * apply(func, [lhs], environment, null);
result = yield * apply(func, [lhs], environment);
}

}
Expand Down

0 comments on commit 40402d8

Please sign in to comment.