Skip to content

Commit 4e2e221

Browse files
committed
unnecessary check removed
1 parent 2441626 commit 4e2e221

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/Services/Users/SafelyDestroyUserSessionTrait.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ protected function safelyDestroyUserSession()
2626
}
2727

2828
foreach ($this->userSessionFields as $field) {
29-
if (isset($_SESSION[$this->context . $field])) {
30-
unset($_SESSION[$this->context . $field]);
31-
}
29+
unset($_SESSION[$this->context . $field]);
3230
}
3331
}
3432
}

0 commit comments

Comments
 (0)