Skip to content

Commit

Permalink
Fix if statement spotted by Google closure
Browse files Browse the repository at this point in the history
See #516
  • Loading branch information
funkyboy committed Jun 15, 2018
1 parent d4a505f commit 3517403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/lib/types/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ var Message = (function() {
if(this.extras)
result += '; extras =' + JSON.stringify(this.extras);
if(this.data) {
if (typeof(data) == 'string')
if (typeof(this.data) == 'string')
result += '; data=' + this.data;
else if (BufferUtils.isBuffer(this.data))
result += '; data (buffer)=' + BufferUtils.base64Encode(this.data);
Expand Down

0 comments on commit 3517403

Please sign in to comment.