mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Remove unnecessary raise statement (#1778)
* Fix typo * Remove unnecessary raise statement
This commit is contained in:
parent
b764791258
commit
f9d8a76767
1 changed files with 0 additions and 2 deletions
|
@ -146,8 +146,6 @@ class LabelledString(_StringSVG):
|
|||
def take_nearest_value(seq: list[int], val: int, index_shift: int) -> int:
|
||||
sorted_seq = sorted(seq)
|
||||
index = LabelledString.find_region_index(sorted_seq, val)
|
||||
if index == -1:
|
||||
raise IndexError
|
||||
return sorted_seq[index + index_shift]
|
||||
|
||||
@staticmethod
|
||||
|
|
Loading…
Add table
Reference in a new issue