Skip to content

Commit b852ca2

Browse files
committed
fix hft commands that broke because of the 1 -> 0 switch
1 parent 1b6e0e8 commit b852ca2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cli/cmds/download-file.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ var utils = require('../utils');
3737

3838
var downloadFile = function(args) {
3939
return new Promise(function(resolve, reject) {
40-
if (args._.length < 2) {
40+
if (args._.length < 1) {
4141
utils.badArgs(module, "missing url and destPath");
4242
reject();
4343
return;
4444
}
4545

46-
if (args._.length < 3) {
46+
if (args._.length < 2) {
4747
utils.badArgs(module, "missing destPath");
4848
reject();
4949
return;

0 commit comments

Comments
 (0)