Skip to content

Commit 342c286

Browse files
committed
Fix lint warnings
1 parent 52f7adc commit 342c286

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lang.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function getFinalMatchLabel(type: string, grandFinalName: (i: number) =>
5050

5151
export function getFinalMatchHint(type: string, i: number): MatchHint {
5252
if (type === 'consolation_final')
53-
return (i: number) => `Loser of Semi ${i}`;
53+
return number => `Loser of Semi ${number}`;
5454

5555
if (i === 0)
5656
return () => 'Winner of LB Final';

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class BracketsViewer {
2222
};
2323

2424
this.participants = data.participants;
25-
data.participants.map(participant => this.teamRefsDOM[participant.id] = []);
25+
data.participants.forEach(participant => this.teamRefsDOM[participant.id] = []);
2626

2727
const matchesByGroup = splitBy(data.matches, 'group_id');
2828

@@ -219,7 +219,7 @@ class BracketsViewer {
219219
}
220220

221221
private renderParticipant(nameContainer: HTMLElement, resultContainer: HTMLElement, team: ParticipantResult, hint: MatchHint, inLowerBracket: boolean) {
222-
const participant = this.participants.find(participant => participant.id === team.id);
222+
const participant = this.participants.find(item => item.id === team.id);
223223

224224
if (participant) {
225225
nameContainer.innerText = participant.name;

0 commit comments

Comments
 (0)