new NuGetVersion[0] -> Enumerable.Empty<NuGetVersion>()
This commit is contained in:
parent
ccfb4135c4
commit
9e76d6ffb5
1 changed files with 3 additions and 2 deletions
|
@ -2,8 +2,9 @@
|
|||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using NuGet.Frameworks;
|
||||
using NuGet.Versioning;
|
||||
|
||||
|
@ -77,7 +78,7 @@ namespace Microsoft.DotNet.Cli.Utils
|
|||
var toolBase = GetBaseToolPath(packageId);
|
||||
if (!Directory.Exists(toolBase))
|
||||
{
|
||||
return new NuGetVersion[0];
|
||||
return Enumerable.Empty<NuGetVersion>();
|
||||
}
|
||||
|
||||
var versionDirectories = Directory.EnumerateDirectories(toolBase);
|
||||
|
|
Loading…
Reference in a new issue