Skip to content

Commit dd46ae2

Browse files
committed
rename tryAddRounds to tryAddLackingRounds
1 parent c99d4a2 commit dd46ae2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/draw/render_content.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const bronze_markup = `
1818
// User can fail to provide data.rounds of appropriate length.
1919
// In such case bracket will be shorter and some matches can be left unrendered
2020
// To avoid confusion, I try to infer the number of rounds from 1st round matches
21-
const tryAddRounds = (all_data) => {
21+
const tryAddLackingRounds = (all_data) => {
2222
if (!all_data.matches || !all_data.rounds) return
2323

2424
let first_round_matches_count = 0
@@ -41,7 +41,7 @@ const tryAddRounds = (all_data) => {
4141
export const render_content = (all_data, shell, get_option) => {
4242
shell.round_titles_wrapper.innerHTML = ''
4343

44-
tryAddRounds(all_data)
44+
tryAddLackingRounds(all_data, get_option)
4545

4646
shell.round_titles_wrapper.append(...get_round_titles(all_data, get_option))
4747

0 commit comments

Comments
 (0)