Commit a4295b6f authored by alexpott's avatar alexpott
Browse files

Issue #2002722 by neochief: Improve maintainability by removing unused local...

Issue #2002722 by neochief: Improve maintainability by removing unused local variables - core/includes/install.inc.
parent 4f3fbf62
...@@ -617,10 +617,7 @@ function drupal_install_system() { ...@@ -617,10 +617,7 @@ function drupal_install_system() {
// Create tables. // Create tables.
drupal_install_schema('system'); drupal_install_schema('system');
if (drupal_container()->has('kernel')) { if (!drupal_container()->has('kernel')) {
$kernel = drupal_container()->get('kernel');
}
else {
// Immediately boot a kernel to have real services ready. // Immediately boot a kernel to have real services ready.
$kernel = new DrupalKernel('install', FALSE, drupal_classloader(), FALSE); $kernel = new DrupalKernel('install', FALSE, drupal_classloader(), FALSE);
$kernel->boot(); $kernel->boot();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment