Skip to content

Commit

Permalink
fix(Stack): next function
Browse files Browse the repository at this point in the history
  • Loading branch information
twlite authored Jul 20, 2024
1 parent ca8d2d9 commit 3166945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord-player/src/structures/Stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class Stack<T> extends ArrayList<T> {
}

public next(): T | undefined {
return this.shift();
return this.pop();
}

public peek(): T | undefined {
Expand Down

0 comments on commit 3166945

Please sign in to comment.