From 6de9cacfd874c4d6112aa7b52ba686503bdbf6b4 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 13 Jan 2022 11:34:20 +0100 Subject: [PATCH] Remove unnecessary sprintf --- src/Composer/Util/AuthHelper.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Composer/Util/AuthHelper.php b/src/Composer/Util/AuthHelper.php index f49373397..28c4aba68 100644 --- a/src/Composer/Util/AuthHelper.php +++ b/src/Composer/Util/AuthHelper.php @@ -96,10 +96,7 @@ class AuthHelper if ($requiresSso) { $ssoUrl = $gitHubUtil->getSsoUrl($headers); - $message = sprintf( - 'GitHub API token requires SSO authorization. Authorize this token at ' . $ssoUrl, - $ssoUrl - ) . "\n"; + $message = 'GitHub API token requires SSO authorization. Authorize this token at ' . $ssoUrl . "\n"; $this->io->writeError($message); if (!$this->io->isInteractive()) { throw new TransportException('Could not authenticate against ' . $origin, 403);