Add some simplifications for argument null exception handling

This commit is contained in:
Adrian Conlon
2024-10-06 13:24:04 +01:00
parent fa353d062c
commit ffe559d792
5 changed files with 7 additions and 21 deletions
+1 -4
View File
@@ -19,10 +19,7 @@ namespace Fuse
public bool TryParse(Lines lines)
{
if (lines == null)
{
throw new ArgumentNullException(nameof(lines));
}
ArgumentNullException.ThrowIfNull(lines);
while (!lines.EndOfFile && string.IsNullOrEmpty(this.Description))
{