Skip to content

Commit

Permalink
refactor: remove useless if (#2177)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbp committed Mar 16, 2021
1 parent 8f9258b commit e3403fb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions jina/drivers/rank/aggregate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ def _group_by(match_idx, col_name):
list_numpy_arrays.append(_sorted_m[prev_index:i])
prev_index = i
prev_val = current_val
if current_val == prev_val:
list_numpy_arrays.append(_sorted_m[prev_index:])

list_numpy_arrays.append(_sorted_m[prev_index:])
return list_numpy_arrays

@staticmethod
Expand Down

0 comments on commit e3403fb

Please sign in to comment.