Skip to content

Commit

Permalink
preparing 2.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorybesson committed Sep 12, 2016
1 parent ba392cc commit 52578ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dist/cli/handlebars/utils/isTrue.js
Expand Up @@ -21,15 +21,15 @@ function isTrue(v1, operator, v2) {
case '&&':
var eval1 = false;
var eval2 = false;
if (v1 && !Array.isArray(v1) || Array.isArray(v1) && v1.length > 0) eval1 = true;
if (v2 && !Array.isArray(v2) || Array.isArray(v2) && v1.length > 0) eval2 = true;
if (!!v1 === true && !Array.isArray(v1) || Array.isArray(v1) && v1.length > 0) eval1 = true;
if (!!v2 === true && !Array.isArray(v2) || Array.isArray(v2) && v2.length > 0) eval2 = true;

return eval1 && eval2;
case '||':
var eval1 = false;
var eval2 = false;
if (v1 && !Array.isArray(v1) || Array.isArray(v1) && v1.length > 0) eval1 = true;
if (v2 && !Array.isArray(v2) || Array.isArray(v2) && v1.length > 0) eval2 = true;
if (!!v1 === true && !Array.isArray(v1) || Array.isArray(v1) && v1.length > 0) eval1 = true;
if (!!v2 === true && !Array.isArray(v2) || Array.isArray(v2) && v2.length > 0) eval2 = true;

return eval1 || eval2;
default:
Expand Down

0 comments on commit 52578ae

Please sign in to comment.