Bug 952660, part 4 - Eliminate now-unnecessary null check in nsXPCWrappedJS::GetNewOrUsed. r=bholley

This commit is contained in:
Andrew McCreight 2014-01-02 11:33:41 -08:00
parent ab20f03087
commit 20b1ae972d

View File

@ -399,9 +399,6 @@ nsXPCWrappedJS::GetNewOrUsed(JS::HandleObject jsObj,
if (release_root)
NS_RELEASE(root);
if (!wrapper)
return NS_ERROR_FAILURE;
*wrapperResult = wrapper;
return NS_OK;
}