refactor: uppercase constants

This commit is contained in:
tomasklaen
2023-03-27 16:52:32 +02:00
parent 1ed8a7a823
commit 02228282be
6 changed files with 13 additions and 13 deletions

View File

@@ -468,7 +468,7 @@ function serialize_chapter_ranges(normalized_chapters)
if next_chapter or not meta.requires_next_chapter then
ranges[#ranges + 1] = table_assign({
start = chapter.time,
['end'] = next_chapter and next_chapter.time or infinity,
['end'] = next_chapter and next_chapter.time or INFINITY,
}, config.chapter_ranges[meta.name])
end
end
@@ -497,7 +497,7 @@ function serialize_chapter_ranges(normalized_chapters)
local next_chapter = chapters[i + 1]
ranges[#ranges + 1] = table_assign({
start = chapter.time,
['end'] = next_chapter and next_chapter.time or infinity,
['end'] = next_chapter and next_chapter.time or INFINITY,
}, config.chapter_ranges.ads)
end
end