summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Boehr <jbboehr@gmail.com>2016-04-21 15:41:07 -0700
committerJohn Boehr <jbboehr@gmail.com>2016-04-21 15:41:07 -0700
commitf0d4159a5e874164ea013373fcb16462be863b88 (patch)
treed22f5308773d65866401942e0141be582987f8c6
parente8ceafa6525a5d41a20aa74dfe24bf99d0bc2fcd (diff)
downloadhandlebars.js-f0d4159a5e874164ea013373fcb16462be863b88.zip
handlebars.js-f0d4159a5e874164ea013373fcb16462be863b88.tar.gz
handlebars.js-f0d4159a5e874164ea013373fcb16462be863b88.tar.bz2
Fix test failure caused by yargs
In yargs 3.2, any non-truthy return value to check will fail: https://github.com/yargs/yargs/blob/master/CHANGELOG.md#302-20150213-1650-0000 It appears that this check is no longer necessary as the other contents of the check callback no longer exist: https://github.com/wycats/handlebars.js/commit/2e7a3bd70223c0e532a24290c7d817b951354541#diff-2aff13863648736946e83d70c5e63520L86 It appears the build failed for PR #1180, not sure why it was merged
-rwxr-xr-xbin/handlebars7
1 files changed, 1 insertions, 6 deletions
diff --git a/bin/handlebars b/bin/handlebars
index deb809b..7684271 100755
--- a/bin/handlebars
+++ b/bin/handlebars
@@ -102,12 +102,7 @@ var yargs = require('yargs')
}
})
- .wrap(120)
- .check(function(argv) {
- if (argv.version) {
- return;
- }
- });
+ .wrap(120);
var argv = yargs.argv;