new NuGetVersion[0] -> Enumerable.Empty<NuGetVersion>()

This commit is contained in:
Krzysztof Wicher 2016-12-19 14:32:31 -08:00
parent ccfb4135c4
commit 9e76d6ffb5

View file

@ -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);