Skip to content

Commit

Permalink
removed any()
Browse files Browse the repository at this point in the history
  • Loading branch information
filipw authored Feb 12, 2020
1 parent 029c309 commit e502657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OmniSharp.Roslyn.CSharp/Helpers/LocationExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static SourceText GetSourceText(Location location, IEnumerable<Document> documen
if (hasMappedPath)
{
SourceText source = null;
if (documents != null && documents.Any() && documents.FirstOrDefault(d => d.TryGetText(out source)) != null)
if (documents != null && documents.FirstOrDefault(d => d.TryGetText(out source)) != null)
{
// we have a mapped document that exists in workspace
return source;
Expand Down

0 comments on commit e502657

Please sign in to comment.