diff --git a/content/base/src/nsObjectLoadingContent.cpp b/content/base/src/nsObjectLoadingContent.cpp index 56c1079d1695..b277419be4a9 100644 --- a/content/base/src/nsObjectLoadingContent.cpp +++ b/content/base/src/nsObjectLoadingContent.cpp @@ -563,9 +563,8 @@ nsObjectLoadingContent::BindToTree(nsIDocument* aDocument, nsIContent* /*aParent nsIContent* /*aBindingParent*/, bool /*aCompileEventHandlers*/) { - if (aDocument) { + if (aDocument) return aDocument->AddPlugin(this); - } return NS_OK; }