1
0
Fork 0

No useless sprintf (#10878)

There must be no sprintf calls with only the first argument.
pull/10893/head
Mathias Reker ⚡️ 2022-06-21 21:19:09 +02:00 committed by GitHub
parent 4714fd5a7b
commit 279b518518
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ class HgDriver extends VcsDriver
public function getRootIdentifier(): string
{
if (null === $this->rootIdentifier) {
$this->process->execute(sprintf('hg tip --template "{node}"'), $output, $this->repoDir);
$this->process->execute('hg tip --template "{node}"', $output, $this->repoDir);
$output = $this->process->splitLines($output);
$this->rootIdentifier = $output[0];
}