Skip to content

Commit 372258d

Browse files
committed
rename
1 parent 80c63cc commit 372258d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/RandomRoundRobin.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class RandomRoundRobin extends RoundRobin {
5252
}
5353

5454
if (this._currentTurn && this._currentTurn.key === key) {
55-
this._currentTurn = this._selectNextItem();
55+
this._currentTurn = this._nextTurn();
5656
if (this._currentTurn === null) {
5757
this._completedRounds += 1;
5858
}
@@ -67,7 +67,7 @@ class RandomRoundRobin extends RoundRobin {
6767
* @public
6868
* @return {object}
6969
*/
70-
_selectNextItem() {
70+
_nextTurn() {
7171
if (this._currentTurn === null) {
7272
this._round = new Set(Array.from(this._items.keys()));
7373
}
@@ -93,11 +93,11 @@ class RandomRoundRobin extends RoundRobin {
9393
}
9494

9595
if (this._currentTurn === null) {
96-
this._currentTurn = this._selectNextItem();
96+
this._currentTurn = this._nextTurn();
9797
}
9898

9999
const item = this._currentTurn;
100-
this._currentTurn = this._selectNextItem();
100+
this._currentTurn = this._nextTurn();
101101
if (this._currentTurn === null) {
102102
this._completedRounds += 1;
103103
}

0 commit comments

Comments
 (0)