mirror of
https://github.com/bower/bower.git
synced 2026-02-12 06:55:04 -05:00
Small change.
This commit is contained in:
@@ -38,11 +38,7 @@ FsResolver.prototype._resolveSelf = function () {
|
||||
|
||||
return this._readJson(this._source)
|
||||
.then(this._copy.bind(this))
|
||||
.spread(function (stat, file) {
|
||||
if (stat.isFile() && extract.canExtract(file)) {
|
||||
return this._extract(file);
|
||||
}
|
||||
}.bind(this));
|
||||
.spread(this._extract.bind(this));
|
||||
};
|
||||
|
||||
// -----------------
|
||||
@@ -76,8 +72,12 @@ FsResolver.prototype._copy = function (meta) {
|
||||
}.bind(this));
|
||||
};
|
||||
|
||||
FsResolver.prototype._extract = function (file) {
|
||||
return extract(file, this._tempDir);
|
||||
FsResolver.prototype._extract = function (stat, file) {
|
||||
if (stat.isFile() && extract.canExtract(file)) {
|
||||
return extract(file, this._tempDir);
|
||||
}
|
||||
|
||||
return Q.resolve();
|
||||
};
|
||||
|
||||
module.exports = FsResolver;
|
||||
Reference in New Issue
Block a user