Skip to content

Commit 27f8be9

Browse files
Remove unneeded ArgumentNullException
1 parent 91b1f87 commit 27f8be9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/ProjectSystem/SnapshotResolver.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ public Task InitializeAsync(CancellationToken cancellationToken)
4747
/// <inheritdoc/>
4848
public ImmutableArray<IProjectSnapshot> FindPotentialProjects(string documentFilePath)
4949
{
50-
if (documentFilePath is null)
51-
{
52-
throw new ArgumentNullException(nameof(documentFilePath));
53-
}
54-
5550
var normalizedDocumentPath = FilePathNormalizer.Normalize(documentFilePath);
5651

5752
using var projects = new PooledArrayBuilder<IProjectSnapshot>();

0 commit comments

Comments
 (0)