Skip to content

Commit 5d29f40

Browse files
committed
CS
1 parent aa573d6 commit 5d29f40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/EventListener/UserContextListener.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,13 @@ public function onKernelRequest(UserContextRequestEvent $event)
138138

139139
$request = $event->getRequest();
140140

141-
// Return early if request is not a hash lookup
142141
if (!$this->requestMatcher->matches($request)) {
143142
if ($request->headers->has($this->options['user_hash_header'])) {
144143
// Keep track of if user is anonymous when we have user hash header in request
145144
$this->wasAnonymous = $this->isAnonymous($request);
146145
}
146+
147+
// Return early if request is not a hash lookup
147148
return;
148149
}
149150

0 commit comments

Comments
 (0)