Merge pull request #1125 from JonHanna/null_propogate

Use null-propogation where applicable and useful.
This commit is contained in:
James Newton-King
2017-01-05 11:15:49 +13:00
committed by GitHub
19 changed files with 67 additions and 123 deletions
+1 -5
View File
@@ -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);
}
}
}