mirror of
https://github.com/bower/bower.git
synced 2026-04-24 03:00:19 -04:00
Minor fixes.
This commit is contained in:
@@ -148,7 +148,7 @@ function createResolver(decEndpoint, options) -> Promise
|
||||
The function is async to allow querying the Bower registry, etc.
|
||||
Options:
|
||||
|
||||
- `skipCache` - true to not use cache (e.g.: bypass registry cache)
|
||||
- `skipCache` - true to not use cache (e.g.: bypass registry cache, defaults to false)
|
||||
- `config` - the config to use (defaults to the global config)
|
||||
|
||||
#### ResolveCache
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
var Q = require('q');
|
||||
var util = require('util');
|
||||
var events = require('events');
|
||||
var mout = require('mout');
|
||||
|
||||
var Worker = function (defaultConcurrency, types) {
|
||||
@@ -12,8 +10,6 @@ var Worker = function (defaultConcurrency, types) {
|
||||
this._executing = [];
|
||||
};
|
||||
|
||||
util.inherits(Worker, events.EventEmitter);
|
||||
|
||||
// -----------------
|
||||
|
||||
Worker.prototype.enqueue = function (func, type) {
|
||||
@@ -76,7 +72,7 @@ Worker.prototype._processEntry = function (entry) {
|
||||
var allFree = entry.types.every(this._hasSlot, this);
|
||||
var promise;
|
||||
|
||||
// If there is a free slot for every tag
|
||||
// If there is a free slot for every type
|
||||
if (allFree) {
|
||||
// For each type
|
||||
entry.types.forEach(function (type) {
|
||||
|
||||
Reference in New Issue
Block a user