Commit 8dc69ede authored by Sydney Acksman's avatar Sydney Acksman

Remove unnecessary check in GetIsExtensionsInitialized

parent b78330b2
...@@ -138,11 +138,6 @@ namespace Google.Protobuf.Reflection ...@@ -138,11 +138,6 @@ namespace Google.Protobuf.Reflection
internal bool GetIsExtensionsInitialized(IMessage message) 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) if (Proto.ExtensionRange.Count == 0)
{ {
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment