remove if (!err) from app.onerror

we assert instanceof Error right below
master
TJ Holowaychuk 2014-06-05 16:37:28 -07:00
parent f68716d8b4
commit 90c528c5e8
1 changed files with 0 additions and 1 deletions

View File

@ -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;