Skip to content

Commit a9614f8

Browse files
authored
Fix ruff lint error FURB192 by using min instead of sorted
1 parent 5fa95b3 commit a9614f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gh_llm/github_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1757,7 +1757,7 @@ def _find_direct_pull_request_template_via_listing(
17571757
candidates.append(candidate_path)
17581758
if not candidates:
17591759
return None
1760-
return sorted(candidates, key=str.casefold)[0]
1760+
return min(candidates, key=str.casefold)
17611761

17621762
def _list_pull_request_template_directories(
17631763
self,

0 commit comments

Comments
 (0)