mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-04-26 17:17:49 +00:00
Add some simplifications for argument null exception handling
This commit is contained in:
+1
-4
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user