Skip to content

Commit

Permalink
refactor(session):remove dup queries,refactorcode
Browse files Browse the repository at this point in the history
Signed-off-by: Hoang Pham <[email protected]>
  • Loading branch information
hweihwang committed May 7, 2024
1 parent d307b7c commit 8b17795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Middleware/SessionMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ private function setControllerData(ISessionAwareController $controller): void {
if ($this->session) {
$controller->setSession($this->session);
}
if (null !== $this->userId) {
if ($this->userId !== null) {
$controller->setUserId($this->userId);
}
}
Expand Down

0 comments on commit 8b17795

Please sign in to comment.