From 2881e384b4d95047a4b94389d4a974990e8ffbb2 Mon Sep 17 00:00:00 2001 From: JoC0de <53140583+JoC0de@users.noreply.github.com> Date: Sat, 21 Oct 2023 13:05:30 +0200 Subject: [PATCH] fix format in api client --- src/NuGetForUnity/Editor/PackageSource/NugetApiClientV3.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/NuGetForUnity/Editor/PackageSource/NugetApiClientV3.cs b/src/NuGetForUnity/Editor/PackageSource/NugetApiClientV3.cs index 89016310..896022d6 100644 --- a/src/NuGetForUnity/Editor/PackageSource/NugetApiClientV3.cs +++ b/src/NuGetForUnity/Editor/PackageSource/NugetApiClientV3.cs @@ -516,15 +516,16 @@ private async Task InitializeApiAddressesAsync(NugetPackageSourceV3 packageSourc { packageDownloadUrlTemplate = $"{registrationsBaseUrl}Download/{{0}}/{{1}}"; PackageDownloadUrlTemplateOverwrite = packageDownloadUrlTemplate; - packageSource.UpdateSearchBatchSize = - 1; // Artifactory somehow can't handle search queries containing multiple packageId's. + + // Artifactory somehow can't handle search queries containing multiple packageId's. + packageSource.UpdateSearchBatchSize = 1; SaveToSessionState(); ConfigurationManager.NugetConfigFile.Save(ConfigurationManager.NugetConfigFilePath); } else { Debug.LogErrorFormat( - "The NuGet package source at '{0}' has no PackageBaseAddress resource defined, please specify it manually pay adding the '{1}' attribute on the package configuration inside the '{2}' file.", + "The NuGet package source at '{0}' has no PackageBaseAddress resource defined, please specify it manually by adding the '{1}' attribute on the package configuration inside the '{2}' file.", apiIndexJsonUrl, NugetConfigFile.PackageDownloadUrlTemplateOverwriteAttributeName, NugetConfigFile.FileName);