Skip to content

Commit

Permalink
Fix stray nullable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Saancreed committed Jun 20, 2023
1 parent ae2b32e commit 057bd0e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/LeanCode.ContractsGenerator/Compilation/ProjectLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ await Console.Error.WriteLineAsync(
foreach (var projectPath in projectPathsList)
{
if (msbuildWorkspace.CurrentSolution.Projects
.Where(p => p.FilePath is not null)
.Any(p => ResolveCanonicalPath(p.FilePath) == projectPath))
.Select(p => p.FilePath)
.OfType<string>()
.Select(ResolveCanonicalPath)
.Contains(projectPath))
{
continue;
}
Expand Down

0 comments on commit 057bd0e

Please sign in to comment.