From 3237c6751a47c7e96229d13f30b9c05ce42551ad Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 13 Dec 2016 15:31:02 -0800 Subject: [PATCH] Use DCHECK instead of assert --- atom/browser/api/atom_api_web_contents.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; }