Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update lib/stores/FileStore.js

Fixed bug with undefined options var when stream() called with no param.
  • Loading branch information...
commit 6e08957b48a405dd50f2cb0a99f2c99bbb471910 1 parent 302e031
@alessioalex alessioalex authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/stores/FileStore.js
View
5 lib/stores/FileStore.js
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -67,8 +66,8 @@ FileStore.prototype.clear = function(fn){
*/
FileStore.prototype.stream = function(options){
- var emitter = options.emitter || new EventEmitter
- , options = options || {}
+ var options = options || {}
+ , emitter = options.emitter || new EventEmitter
, buf = options.buf || ''
, self = this
, substr
Please sign in to comment.
Something went wrong with that request. Please try again.