diff --git a/system/HTTP/RedirectResponse.php b/system/HTTP/RedirectResponse.php index cd12246995cc..4be240fe8585 100644 --- a/system/HTTP/RedirectResponse.php +++ b/system/HTTP/RedirectResponse.php @@ -163,17 +163,6 @@ public function with(string $key, $message) */ protected function ensureSession() { - $session = Services::session(); - - // Ensure we have the session started up. - // true for travis-ci, so not coverable - // @codeCoverageIgnoreStart - if ( ! isset($_SESSION)) - { - $session->start(); - } - // @codeCoverageIgnoreEnd - - return $session; + return Services::session(); } }