Skip to content

Commit

Permalink
Merge pull request #43 from codecov/variable_rename
Browse files Browse the repository at this point in the history
Update LaravelOpenTelemetryServiceProvider.php
  • Loading branch information
thomasrockhu-codecov authored Sep 23, 2024
2 parents 66cc081 + f848af6 commit c2de520
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/LaravelOpenTelemetryServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ public function register()
'laravel_codecov_opentelemetry'
);

$instance = $this->initOpenTelemetry();
$inst = $this->initOpenTelemetry();

if ($instance) {
$this->app->singleton(Tracer::class, function () use ($instance) {
return $instance;
if ($inst) {
$this->app->singleton(Tracer::class, function () use ($inst) {
return $inst;
});
}
}
Expand Down

0 comments on commit c2de520

Please sign in to comment.