Skip to content

Commit

Permalink
Merge pull request hapijs#951 from nlf/master
Browse files Browse the repository at this point in the history
use .isBoom instead of instanceof Boom
  • Loading branch information
geek committed Jul 3, 2013
2 parents 35bffb8 + d25b844 commit 2f7c5bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/response/index.js
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2f7c5bc

Please sign in to comment.