Skip to content

Commit

Permalink
Fix bug in _move_char
Browse files Browse the repository at this point in the history
  • Loading branch information
kostrykin committed Sep 27, 2024
1 parent 2d9910a commit cc5e737
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/galaxy/tool_util/verify/asserts/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,6 @@ def _compute_center_of_mass(im_arr: "numpy.typing.NDArray") -> Tuple[float, floa
def _move_char(s: str, pos_src: int, pos_dst: int) -> str:
s_list = list(s)
c = s_list.pop(pos_src)
if pos_dst > pos_src:
pos_dst -= 1
if pos_dst < 0:
pos_dst = len(s_list) + pos_dst + 1
s_list.insert(pos_dst, c)
Expand Down

0 comments on commit cc5e737

Please sign in to comment.