mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Optimize some redundant stuff
This commit is contained in:
parent
7755ed4ac8
commit
73d2ed6f77
1 changed files with 2 additions and 2 deletions
|
@ -64,8 +64,8 @@ def parse_description(desc : JSON::Any?) : String?
|
|||
length = command["length"].as_i
|
||||
|
||||
if start_index > 0 && start_index - index > 0
|
||||
str << content[index..(start_index - 1)]
|
||||
index += start_index - index
|
||||
str << content[index...start_index]
|
||||
index = start_index
|
||||
end
|
||||
|
||||
str << parse_command(command, content[start_index, length])
|
||||
|
|
Loading…
Reference in a new issue