remove if (!err) from app.onerror

we assert instanceof Error right below
This commit is contained in:
TJ Holowaychuk 2014-06-05 16:37:28 -07:00
parent f68716d8b4
commit 90c528c5e8

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;