From 20b1ae972dd98024e111056294211a1f91307cb3 Mon Sep 17 00:00:00 2001 From: Andrew McCreight Date: Thu, 2 Jan 2014 11:33:41 -0800 Subject: [PATCH] Bug 952660, part 4 - Eliminate now-unnecessary null check in nsXPCWrappedJS::GetNewOrUsed. r=bholley --- js/xpconnect/src/XPCWrappedJS.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/js/xpconnect/src/XPCWrappedJS.cpp b/js/xpconnect/src/XPCWrappedJS.cpp index 3dbe93148b8..222611b4f0a 100644 --- a/js/xpconnect/src/XPCWrappedJS.cpp +++ b/js/xpconnect/src/XPCWrappedJS.cpp @@ -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; }