From 64b07cac3f3773e2f301ba7bd41cee8b5e40303e Mon Sep 17 00:00:00 2001 From: Thomas Nieto <38873752+ThomasNieto@users.noreply.github.com> Date: Fri, 20 Sep 2024 22:07:01 -0500 Subject: [PATCH] Fix formatting (#12) --- src/AnyPackage.Pkgx.psm1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/AnyPackage.Pkgx.psm1 b/src/AnyPackage.Pkgx.psm1 index fa73d56..0b3ba0b 100644 --- a/src/AnyPackage.Pkgx.psm1 +++ b/src/AnyPackage.Pkgx.psm1 @@ -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('@')) {