Skip to content

Commit de8b5af

Browse files
authored
Use ArgumentNullException.ThrowIfNull in ChecksumValidator (#46174)
1 parent 1dd6f45 commit de8b5af

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Mvc/Mvc.Razor.RuntimeCompilation/src/ChecksumValidator.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,7 @@ public static bool IsItemValid(RazorProjectFileSystem fileSystem, RazorCompiledI
9393

9494
private static (byte[] checksum, string algorithm) ComputeChecksum(RazorProjectItem projectItem, string checksumAlgorithm)
9595
{
96-
if (projectItem == null)
97-
{
98-
throw new ArgumentNullException(nameof(projectItem));
99-
}
96+
ArgumentNullException.ThrowIfNull(projectItem);
10097

10198
Func<Stream, byte[]> hashData;
10299
string algorithmName;

0 commit comments

Comments
 (0)