From 459c20b01ee0cd8da142b371faf8abd7fe9a71cf Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Sun, 12 Oct 2014 22:01:31 -0400 Subject: [PATCH] clean redundant type check --- mithril.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mithril.js b/mithril.js index a33facfa..b3ed1fb1 100644 --- a/mithril.js +++ b/mithril.js @@ -441,7 +441,7 @@ Mithril = m = new function app(window, undefined) { m.prop = function (store) { //note: using non-strict equality check here because we're checking if store is null OR undefined - if ((isObj(store) || isFn(store)) && store != null && isFn(store.then)) { + if ((isObj(store) || isFn(store)) && isFn(store.then)) { return propify(store) }