Skip to content

Commit

Permalink
Remove unnecessary realpath which can fail, closes #10694
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Apr 2, 2022
1 parent 0985501 commit 96f087a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Composer/Command/ConfigCommand.php
Expand Up @@ -185,7 +185,7 @@ protected function initialize(InputInterface $input, OutputInterface $output)

$authConfigFile = $input->getOption('global')
? ($this->config->get('home') . '/auth.json')
: dirname(realpath($configFile)) . '/auth.json';
: dirname($configFile) . '/auth.json';

$this->authConfigFile = new JsonFile($authConfigFile, null, $io);
$this->authConfigSource = new JsonConfigSource($this->authConfigFile, true);
Expand Down

0 comments on commit 96f087a

Please sign in to comment.