diff --git a/core/modules/views/src/Plugin/views/argument_validator/Entity.php b/core/modules/views/src/Plugin/views/argument_validator/Entity.php
index fe2175c07ed6e9858dc2ab0c84dba3f01e1d95c1..b5362b014fce98d4504ca37bb2887e7a9434f3e5 100644
--- a/core/modules/views/src/Plugin/views/argument_validator/Entity.php
+++ b/core/modules/views/src/Plugin/views/argument_validator/Entity.php
@@ -226,7 +226,6 @@ public function calculateDependencies() {
     if ($this->entityManager->hasHandler($bundle_entity_type, 'storage')) {
       $bundle_entity_storage = $this->entityManager->getStorage($bundle_entity_type);
 
-      $test = $bundle_entity_storage->loadMultiple(array_keys($this->options['bundles']));
       foreach ($bundle_entity_storage->loadMultiple(array_keys($this->options['bundles'])) as $bundle_entity) {
         $dependencies[$bundle_entity->getConfigDependencyKey()][] = $bundle_entity->getConfigDependencyName();
       }