Remove unnecessary check in GetIsExtensionsInitialized

This commit is contained in:
Sydney Acksman 2019-05-05 13:28:19 -05:00
parent b78330b21d
commit 8dc69ede45

View File

@ -138,11 +138,6 @@ namespace Google.Protobuf.Reflection
internal bool GetIsExtensionsInitialized(IMessage message)
{
if (!object.ReferenceEquals(message.Descriptor, this))
{
throw new InvalidOperationException("message's descriptor reference does not match this");
}
if (Proto.ExtensionRange.Count == 0)
{
return true;