Skip to content

Commit

Permalink
fix(MongoMemoryReplSet): remove unused variable
Browse files Browse the repository at this point in the history
- start: removes variable "current", because it was never assigned
  • Loading branch information
hasezoey authored and nodkz committed Sep 10, 2020
1 parent 0a213dd commit d32aec1
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,8 @@ export default class MongoMemoryReplSet extends EventEmitter {
return this._initServer(this.getInstanceOpts(opts));
});
const cnt = this.opts.replSet.count || 1;
/** For extra logging */
const current = 0;
while (servers.length < cnt) {
log(` starting server ${current} of ${cnt}...`);
log(` starting server ${servers.length + 1} of ${cnt}...`);
const server = this._initServer(this.getInstanceOpts({}));
servers.push(server);
}
Expand Down

0 comments on commit d32aec1

Please sign in to comment.