Skip to content

Commit 666c788

Browse files
committed
Merge commit 'refs/pull/362/head' of github.com:packit/ai-workflows
2 parents 5f852ea + 74eda2f commit 666c788

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mcp_server/gitlab_tools.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,7 @@ def _get_authorized_member_ids(project: GitlabProject) -> set[int]:
410410

411411
def _extract_position_info(note: dict) -> tuple[str, int | None, str]:
412412
"""Extract file path, line number, and line type from a note's position."""
413-
position = note.get("position")
414-
if not position:
413+
if not (position := note.get("position")):
415414
return "", None, ""
416415

417416
file_path = position.get("new_path", "") or position.get("old_path", "")

0 commit comments

Comments
 (0)