Skip to content

Commit

Permalink
fix format in api client
Browse files Browse the repository at this point in the history
  • Loading branch information
JoC0de committed Oct 21, 2023
1 parent 0b160b4 commit 2881e38
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/NuGetForUnity/Editor/PackageSource/NugetApiClientV3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2881e38

Please sign in to comment.