Permalink
Browse files

nit pick

  • Loading branch information...
1 parent 09ae5d4 commit 95cff7529d2d62300ef04f7476dd1dc7d0326c75 Garrett Johnson committed Aug 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/message.js
View
@@ -37,7 +37,7 @@ function Message(data, meta){
*/
Message.prototype.write = function(data, meta){
- var buf = this.pack(data, meta !== undefined ? meta: 1);
+ var buf = this.pack(data, meta == null ? 1 : meta);
this.byteLength += buf.length;
this.parts.push(buf);
return this;

0 comments on commit 95cff75

Please sign in to comment.