Remove unnecessary check in GetIsExtensionsInitialized
This commit is contained in:
parent
b78330b21d
commit
8dc69ede45
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user