From 90c528c5e89693db87579e1eea6828490a6915db Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Thu, 5 Jun 2014 16:37:28 -0700 Subject: [PATCH] remove if (!err) from app.onerror we assert instanceof Error right below --- lib/application.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/application.js b/lib/application.js index f5599dd..c57d541 100644 --- a/lib/application.js +++ b/lib/application.js @@ -155,7 +155,6 @@ app.createContext = function(req, res){ */ app.onerror = function(err){ - if (!err) return; assert(err instanceof Error, 'non-error thrown: ' + err); if (404 == err.status) return;