From 434cecac949d71412e19ef7ccb29cdc6b3f4b325 Mon Sep 17 00:00:00 2001
From: Lauri Eskola <lauri.eskola@acquia.com>
Date: Tue, 13 Sep 2022 10:25:51 +0300
Subject: [PATCH] Issue #3309247 by pratik_specbee, neclimdul: Unused
 $theme_engine variable in ThemeInitialization.php

---
 core/lib/Drupal/Core/Theme/ThemeInitialization.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/lib/Drupal/Core/Theme/ThemeInitialization.php b/core/lib/Drupal/Core/Theme/ThemeInitialization.php
index ee52887b59d1..03f6b1ee29f4 100644
--- a/core/lib/Drupal/Core/Theme/ThemeInitialization.php
+++ b/core/lib/Drupal/Core/Theme/ThemeInitialization.php
@@ -135,7 +135,7 @@ public function getActiveThemeByName($theme_name) {
    */
   public function loadActiveTheme(ActiveTheme $active_theme) {
     // Initialize the theme.
-    if ($theme_engine = $active_theme->getEngine()) {
+    if ($active_theme->getEngine()) {
       // Include the engine.
       include_once $this->root . '/' . $active_theme->getOwner();
       foreach ($active_theme->getBaseThemeExtensions() as $base) {
-- 
GitLab