Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bd13d6d

Browse files
🎨 fix style fix black
1 parent 7947988 commit bd13d6d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎gitlab_webhooks/views.py‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,14 @@ def post(self, request: HttpRequest, **kwargs) -> JsonResponse:
3939
# Validate webhook secret
4040
if request.META.get(constants.TOKEN_HEADER) != self.get_secret():
4141
return JsonResponse(
42-
{"detail": constants.INVALID_HTTP_X_GITLAB_TOKEN},
43-
status=400,
42+
{"detail": constants.INVALID_HTTP_X_GITLAB_TOKEN}, status=400,
4443
)
4544

4645
# Check event header
4746
event = request.META.get(constants.EVENT_HEADER)
4847
if event is None:
4948
return JsonResponse(
50-
{"detail": constants.EVENT_HEADER_IS_MISSING},
51-
status=400,
49+
{"detail": constants.EVENT_HEADER_IS_MISSING}, status=400,
5250
)
5351

5452
# Validate that event is allowed

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /