Skip to content

Commit

Permalink
Merge pull request #6961 from joeloff/nullcheck
Browse files Browse the repository at this point in the history
Fix parameter in null/empty check
  • Loading branch information
joeloff authored Aug 16, 2023
2 parents 79a4207 + d2c56f4 commit 5633557
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public async Task<NuGetPackageInfo> DownloadPackageAsync(string downloadPath, st
{
throw new ArgumentException($"{nameof(identifier)} cannot be null or empty", nameof(identifier));
}
if (string.IsNullOrWhiteSpace(identifier))
if (string.IsNullOrWhiteSpace(downloadPath))
{
throw new ArgumentException($"{nameof(downloadPath)} cannot be null or empty", nameof(downloadPath));
}
Expand Down

0 comments on commit 5633557

Please sign in to comment.