Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 56f613b

Browse files
committed
get service the same way as shelter
1 parent 38d9c56 commit 56f613b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

codecov_auth/authentication/repo_auth.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,9 +424,7 @@ def _get_git(self, validated_data):
424424
BA sends this in as git_service, TA sends this in as service.
425425
Use this function so this Check class can be used by both views.
426426
"""
427-
git_service = validated_data.get("git_service")
428-
if not git_service:
429-
git_service = validated_data.get("service")
427+
git_service = validated_data.get("git_service") or validated_data.get("service")
430428
return git_service
431429

432430
def _get_info_from_request_body(

0 commit comments

Comments
 (0)