Merge pull request #1125 from JonHanna/null_propogate
Use null-propogation where applicable and useful.
This commit is contained in:
@@ -1182,11 +1182,7 @@ namespace Newtonsoft.Json
|
||||
|
||||
internal void OnError(ErrorEventArgs e)
|
||||
{
|
||||
EventHandler<ErrorEventArgs> error = Error;
|
||||
if (error != null)
|
||||
{
|
||||
error(this, e);
|
||||
}
|
||||
Error?.Invoke(this, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user