replace yield returns with linq query
This commit is contained in:
parent
aa7fb60d73
commit
4b00570f68
1 changed files with 3 additions and 4 deletions
|
@ -196,11 +196,10 @@ namespace Microsoft.DotNet.Cli.Utils
|
||||||
{
|
{
|
||||||
if (project.TryGetLockFile(out LockFile lockFile))
|
if (project.TryGetLockFile(out LockFile lockFile))
|
||||||
{
|
{
|
||||||
foreach (var packageFolder in lockFile.PackageFolders)
|
return lockFile.PackageFolders.Select((packageFolder) => packageFolder.Path);
|
||||||
{
|
|
||||||
yield return packageFolder.Path;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return Enumerable.Empty<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
private LockFile GetToolLockFile(
|
private LockFile GetToolLockFile(
|
||||||
|
|
Loading…
Add table
Reference in a new issue