Permalink
Browse files

check for :memory: in openDbs check

  • Loading branch information...
1 parent 7b2e125 commit 6eba8bcf0dbc8d8bf5c9c169ff9fe71529d7bd25 @substack substack committed Oct 8, 2010
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/store.js
View
@@ -28,12 +28,12 @@ function Store(opts, cb) {
opts.filename = process.cwd() + '/' + opts.filename;
opts.filename = normalize(opts.filename);
- }
-
- if (openDbs[opts.filename]) {
- var db = openDbs[opts.filename];
- cb(undefined, db);
- return;
+
+ if (openDbs[opts.filename]) {
+ var db = openDbs[opts.filename];
+ cb(undefined, db);
+ return;
+ }
}
opts.json = opts.json || false;

0 comments on commit 6eba8bc

Please sign in to comment.