diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index a84cca7a005c..c306ba695fca 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -497,9 +497,8 @@ bool WebContents::PreHandleKeyboardEvent( event.type == blink::WebInputEvent::Type::RawKeyDown ? "keyDown" : event.type == blink::WebInputEvent::Type::KeyUp ? "keyUp" : nullptr; + DCHECK(type); if (!type) { - // This should never happen. - assert(false); return false; }