You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the check in deleteSegment checks for numSegments > 1 and is later used to index this.segments. So this check effictively means that 0 and 1 are not allowed as index. However, index 1 should be allowed to remove the first segment.
So changing the check to numSegments > 0 or >= 1 would fix this big
The text was updated successfully, but these errors were encountered:
the check in
deleteSegment
checks fornumSegments > 1
and is later used to indexthis.segments
. So this check effictively means that0
and1
are not allowed as index. However, index 1 should be allowed to remove the first segment.So changing the check to
numSegments > 0
or>= 1
would fix this bigThe text was updated successfully, but these errors were encountered: