Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
brettmc committed Oct 20, 2024
1 parent 68e15fc commit ffb28df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/SDK/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ class Registry

public static function maybeInitFromComposerExtra(): void
{
$shouldInit = Sdk::useJsonRegistry();
if ($shouldInit === false || self::$initialized) {
if (self::$initialized || Sdk::useJsonRegistry()) {
return;
}
$file = dirname(__DIR__, 2) . '/vendor/composer/' . ComposerRegistry::FILENAME;
Expand Down

0 comments on commit ffb28df

Please sign in to comment.