mirror of
https://github.com/dnlbauer/django-signposting.git
synced 2026-09-10 14:05:31 +00:00
linting
This commit is contained in:
@@ -36,4 +36,3 @@ class SignpostingMiddleware:
|
||||
link_snippets[-1] += f' ; type="{signpost.type}"'
|
||||
|
||||
response["Link"] = " , ".join(link_snippets)
|
||||
|
||||
|
||||
@@ -13,5 +13,5 @@ def add_signposts(response: HttpResponse, *args: Signpost):
|
||||
response._signposts = []
|
||||
|
||||
for signpost in args:
|
||||
if not signpost in response._signposts:
|
||||
response._signposts.append(signpost)
|
||||
if signpost not in response._signposts:
|
||||
response._signposts.append(signpost)
|
||||
|
||||
Reference in New Issue
Block a user