Skip to content

Commit

Permalink
fix hft commands that broke because of the 1 -> 0 switch
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Sep 20, 2014
1 parent 1b6e0e8 commit b852ca2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/cmds/download-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ var utils = require('../utils');

var downloadFile = function(args) {
return new Promise(function(resolve, reject) {
if (args._.length < 2) {
if (args._.length < 1) {
utils.badArgs(module, "missing url and destPath");
reject();
return;
}

if (args._.length < 3) {
if (args._.length < 2) {
utils.badArgs(module, "missing destPath");
reject();
return;
Expand Down

0 comments on commit b852ca2

Please sign in to comment.