Skip to content

Commit

Permalink
fix: don’t call options.remote getter on setup
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Mar 9, 2017
1 parent 005118d commit 183af82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function Store (dbName, options) {
if (!(this instanceof Store)) return new Store(dbName, options)
if (typeof dbName !== 'string') throw new Error('Must be a valid string.')

if (!options || (!options.remote && !options.remoteBaseUrl)) {
if (!options || (!('remote' in options) && !options.remoteBaseUrl)) {
throw new Error('options.remote or options.remoteBaseUrl is required')
}

Expand Down

0 comments on commit 183af82

Please sign in to comment.