diff --git a/src/Paket.Core/NuGetV3.fs b/src/Paket.Core/NuGetV3.fs index 3662d27990..61e69c1764 100644 --- a/src/Paket.Core/NuGetV3.fs +++ b/src/Paket.Core/NuGetV3.fs @@ -101,9 +101,9 @@ let internal findAutoCompleteVersionsForPackage(v3Url, auth, packageName:Domain. } /// Uses the NuGet v3 autocomplete service to retrieve all package versions for the given package. -let FindAutoCompleteVersionsForPackage(auth, nugetURL, package, includingPrereleases, maxResults) = +let FindAutoCompleteVersionsForPackage(nugetURL, auth, package, includingPrereleases, maxResults) = async { - let! raw = findAutoCompleteVersionsForPackage(auth, nugetURL, package, includingPrereleases, maxResults) + let! raw = findAutoCompleteVersionsForPackage(nugetURL, auth, package, includingPrereleases, maxResults) match raw with | Some versions -> return versions | None -> return [||]