Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

swap on/join in case the old lazy is kicking around

  • Loading branch information...
commit 64581c1b0b1a17b91956f7148cc6f45be273f8b6 1 parent a8f8e94
James Halliday substack authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/store.js
8 lib/store.js
View
@@ -218,15 +218,15 @@ function Store(opts, cb) {
var keys = [];
var vals = [];
self
+ .on('error', function (err) {
+ self.emit('error', err);
+ cb(err);
+ })
.join(function (rows) { cb(
undefined,
rows.map(function (r) { return r.key }),
rows.map(function (r) { return r.value })
) })
- .on('error', function (err) {
- self.emit('error', err);
- cb(err);
- })
;
};
Please sign in to comment.
Something went wrong with that request. Please try again.