Explorar el Código

fix peek() without cb not returning the object

Herbert Vojčík hace 9 años
padre
commit
2a013b3770
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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) {