Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
amaechler committed Oct 24, 2021
1 parent 012176c commit 0e9d491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Depends.Core/Extensions/AnalyzerResultExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ internal static class AnalyzerResultExtensions
result.GetProperty("RuntimeIdentifier");

public static IEnumerable<ProjectItem> GetItems(this IAnalyzerResult result, string name) =>
result.Items.TryGetValue(name, out var items) ? items : Enumerable.Empty<ProjectItem>();
result.Items.TryGetValue(name, out var items) ? (IEnumerable<ProjectItem>)items : Enumerable.Empty<ProjectItem>();
}
}

0 comments on commit 0e9d491

Please sign in to comment.