From d25b84432d7073f10b0b050f1b7f21d3ef660d54 Mon Sep 17 00:00:00 2001 From: Nathan LaFreniere Date: Wed, 3 Jul 2013 12:13:41 -0700 Subject: [PATCH] use isBoom instead of instanceof Boom --- lib/response/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/response/index.js b/lib/response/index.js index 59e8f81d2..e382a1bae 100755 --- a/lib/response/index.js +++ b/lib/response/index.js @@ -71,7 +71,7 @@ exports._generate = function (result, onSend) { response = new internals.Buffer(result); } else if (result.isHapiResponse || - result instanceof Boom) { + result.isBoom) { response = result; }