Skip to content

Commit

Permalink
Fixed srt indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
asticode committed Jan 9, 2024
1 parent 2d03157 commit 6c644f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srt.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func ReadFromSRT(i io.Reader) (o *Subtitles, err error) {
// If the last line is empty then the item is missing an index.
var index string
if len(s.Lines) != 0 {
index := s.Lines[len(s.Lines)-1].String()
index = s.Lines[len(s.Lines)-1].String()
if index != "" {
s.Lines = s.Lines[:len(s.Lines)-1]
}
Expand Down

0 comments on commit 6c644f7

Please sign in to comment.