Index: src/inspector/v8-inspector-session-impl.cc |
diff --git a/src/inspector/v8-inspector-session-impl.cc b/src/inspector/v8-inspector-session-impl.cc |
index 9a0f652c4ca4ae228d33083a8c6711b998d90dc6..c3d3f48f00fb52f6b65bdd1c5f0f26dd96b83468 100644 |
--- a/src/inspector/v8-inspector-session-impl.cc |
+++ b/src/inspector/v8-inspector-session-impl.cc |
@@ -187,8 +187,7 @@ InjectedScript* V8InspectorSessionImpl::findInjectedScript( |
const std::unique_ptr<InspectedContext>& context = contextsIt->second; |
if (!context->getInjectedScript()) { |
- context->createInjectedScript(); |
- if (!context->getInjectedScript()) { |
+ if (!context->createInjectedScript()) { |
*errorString = "Cannot access specified execution context"; |
return nullptr; |
} |