Skip to content

Commit

Permalink
Fix typo in respond()
Browse files Browse the repository at this point in the history
  • Loading branch information
smfreegard committed Jan 6, 2012
1 parent 2947e56 commit 4f4ddb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ Connection.prototype.respond = function(code, msg) {
// Check to see if DSN object was passed in
if (typeof msg === 'object' && msg.constructor.name === 'DSN') {
// Override
code = messages.code;
msg = messages.reply;
code = msg.code;
msg = msg.reply;
}
if (!(typeof msg === 'object' && msg.constructor.name === 'Array')) {
// msg not an array, make it so:
Expand Down

0 comments on commit 4f4ddb3

Please sign in to comment.