mirror of
https://github.com/m-bain/whisperX.git
synced 2025-07-01 18:17:27 -04:00
REMOVE duplicated code
This commit is contained in:
@ -227,9 +227,6 @@ class SubtitlesWriter(ResultWriter):
|
|||||||
max_line_width = 1000 if raw_max_line_width is None else raw_max_line_width
|
max_line_width = 1000 if raw_max_line_width is None else raw_max_line_width
|
||||||
preserve_segments = max_line_count is None or raw_max_line_width is None
|
preserve_segments = max_line_count is None or raw_max_line_width is None
|
||||||
|
|
||||||
if len(result["segments"]) == 0:
|
|
||||||
return
|
|
||||||
|
|
||||||
if len(result["segments"]) == 0:
|
if len(result["segments"]) == 0:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user