Browse Source

fix peek() without cb not returning the object

Herbert Vojčík 8 years ago
parent
commit
2a013b3770
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/usim.js

+ 1 - 1
lib/usim.js

@@ -36,7 +36,7 @@
     };
 
     uSim.prototype.peek = function (cb) {
-        this.peekUntil(Infinity, cb);
+        return this.peekUntil(Infinity, cb);
     };
 
     uSim.prototype.streamUntil = function (limit, cb) {