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
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;
......
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