diff --git a/src/Composer/Repository/RepositoryFactory.php b/src/Composer/Repository/RepositoryFactory.php index d8e917147..5d3a2a61f 100644 --- a/src/Composer/Repository/RepositoryFactory.php +++ b/src/Composer/Repository/RepositoryFactory.php @@ -93,9 +93,9 @@ class RepositoryFactory { if (!$config) { $config = Factory::createConfig($io); - if ($io) { - $io->loadConfiguration($config); - } + } + if ($io) { + $io->loadConfiguration($config); } if (!$rm) { if (!$io) {