Skip to content

Commit 44fe882

Browse files
committed
Client: refactorr getting client api version
1 parent 122583d commit 44fe882

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Client.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,9 @@ protected function getHttpClientBuilder()
126126
private function getApiClientVersion()
127127
{
128128
try {
129-
if ($version = \Composer\InstalledVersions::getVersion('private-packagist/api-client')) {
130-
return $version;
131-
}
129+
return \Composer\InstalledVersions::getVersion('private-packagist/api-client');
132130
} catch (\OutOfBoundsException $exception) {
133131
return null;
134132
}
135-
136-
return null;
137133
}
138134
}

0 commit comments

Comments
 (0)