Skip to content

Commit

Permalink
Fix formatting (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasNieto authored Sep 21, 2024
1 parent ad5b15e commit 64b07ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/AnyPackage.Pkgx.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ class PkgxProvider : PackageProvider, IFindPackage, IInstallPackage, IUninstallP
[void] InstallPackage([PackageRequest] $request) {
if ($request.Version -and $request.Version.MinVersion -ne $request.Version.MaxVersion) {
throw 'pkgx does not support version ranges, use only exact versions.'
}
elseif ($request.Version) {
} elseif ($request.Version) {
$version = $request.Version.MinVersion
$name = '{0}@{1}' -f $request.Name, $version
} elseif ($request.Name.Contains('@')) {
Expand Down

0 comments on commit 64b07ca

Please sign in to comment.