Skip to content

Commit

Permalink
Removed redundant local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyKleyman committed Nov 28, 2024
1 parent 285a050 commit 998a3f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prod/php/ElasticOTel/PhpPartFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,18 +112,18 @@ public static function bootstrap(string $elasticOTelNativePartVersion, int $maxE

private static function buildElasticOTelVersion(string $nativePartVersion): string
{
if ($nativePartVersion === ($phpPartVersion = PhpPartVersion::VALUE)) {
if ($nativePartVersion === PhpPartVersion::VALUE) {
return $nativePartVersion;
}

BootstrapStageLogger::logWarning(
'Native part and PHP part versions do not match' . "; nativePartVersion: $nativePartVersion" . "; phpPartVersion: $phpPartVersion",
'Native part and PHP part versions do not match. native part version: ' . $nativePartVersion . '; PHP part version: ' . PhpPartVersion::VALUE,
__FILE__,
__LINE__,
__CLASS__,
__FUNCTION__
);
return "$nativePartVersion/$phpPartVersion";
return $nativePartVersion . '/' . PhpPartVersion::VALUE;
}

private static function isInDevMode(): bool
Expand Down

0 comments on commit 998a3f3

Please sign in to comment.