Skip to content

Commit c6f1213

Browse files
committed
Remove extraneous sort
1 parent 24449b4 commit c6f1213

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

qiita_pet/handlers/rest/study_association.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,9 @@ def _most_recent_template_path(template):
5555
if len(filepaths) == 0:
5656
return None
5757

58-
metadata_paths = sorted(filepaths, reverse=True)
59-
6058
# [0] -> the highest file by ID
6159
# [1] -> the filepath
62-
return metadata_paths[0][1]
60+
return filepaths[0][1]
6361

6462

6563
def _set_study(payload, study):

0 commit comments

Comments
 (0)