From 92d082891b9e14d66adfea23d4ad27310cd54896 Mon Sep 17 00:00:00 2001 From: James Campos Date: Sun, 24 Jul 2011 11:48:14 -0700 Subject: [PATCH] no need for null --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 84109f3c2..484fbecdb 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -730,7 +730,7 @@ if (((_ref = e.target.nodeName) === 'TEXTAREA' || _ref === 'INPUT') && !e.altKey && !e.ctrlKey && !(e.keyCode === 27)) { return; } - if ((key = keybinds.cb.keyCode(e)) == null) { + if (!(key = keybinds.cb.keyCode(e))) { return; } thread = nav.getThread(); diff --git a/script.coffee b/script.coffee index 1c2f91f81..ee31fc2d2 100644 --- a/script.coffee +++ b/script.coffee @@ -520,7 +520,7 @@ keybinds = cb: keydown: (e) -> return if e.target.nodeName in ['TEXTAREA', 'INPUT'] and not e.altKey and not e.ctrlKey and not (e.keyCode is 27) - return unless (key = keybinds.cb.keyCode e)? + return unless key = keybinds.cb.keyCode e thread = nav.getThread() switch key