Skip to content

Commit

Permalink
fix: fix null sub error
Browse files Browse the repository at this point in the history
  • Loading branch information
smark committed May 25, 2024
1 parent 5ce6767 commit 4cf811b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sub.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func ParseSub(subUrl string) ([]string, error) {

for _, line := range lines {
decodedLine, err := decodeLine(line)
if err != nil || line == "" {
if err != nil || decodedLine == "" {
continue
}
result = append(result, decodedLine)
Expand Down

0 comments on commit 4cf811b

Please sign in to comment.