Skip to content
This repository has been archived by the owner on May 20, 2019. It is now read-only.

Commit

Permalink
[#45,style]: fix style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
alvaropinot committed Mar 30, 2016
1 parent 1e968ec commit dd928df
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Dpm.prototype.resolveDeps = function(dataDependencies, callback){
cb(null, dep.name + '@' + version);

}.bind(this));

}.bind(this), callback);

};
Expand Down Expand Up @@ -127,7 +127,7 @@ Dpm.prototype.installFromArgString = function(dpkgIds, options, callback) {
}

// dpkgIds are data package "specs":
//
//
// - url to a datapackage
// - path to a datapackage
// - package name
Expand Down Expand Up @@ -172,15 +172,15 @@ Dpm.prototype.get = function(dpkgId, opts, callback) {

var resources = dpkg.resources;
// TODO: convert path to urls ...

async.each(resources, function(r, cb) {
cb = once(cb);
var resourceUrl = r.url ? r.url : spec.url.replace(/\/$/, '') + '/' + r.path;

self.logHttp('GET', resourceUrl);
var req = request(resourceUrl);
req.on('error', cb);
req.on('response', function(resp){
req.on('response', function(resp){
self.logHttp(resp.statusCode, resourceUrl);
if(resp.statusCode >= 400){
resp.pipe(concat(function(body){
Expand Down Expand Up @@ -261,4 +261,3 @@ Dpm.prototype.info = function(argv, callback) {
callback(err, out);
}
}

0 comments on commit dd928df

Please sign in to comment.