Skip to content

Commit 1920596

Browse files
committed
codestyle
1 parent d5c224e commit 1920596

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

browser-app.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,8 @@ bool BrowserApp::OnProcessMessageReceived(CefRefPtr<CefBrowser> browser,
415415

416416
CefRefPtr<CefV8Value> dispatchEvent =
417417
globalObj->GetValue("dispatchEvent");
418-
dispatchEvent->ExecuteFunction(nullptr, arguments);
419-
if (!dispatchEvent || !dispatchEvent->IsFunction()) {
420-
} else {
418+
419+
If (dispatchEvent && dispatchEvent->IsFunction()) {
421420
dispatchEvent->ExecuteFunction(nullptr, arguments);
422421
}
423422
context->Exit();

0 commit comments

Comments
 (0)