Skip to content

Commit 183af82

Browse files
committed
fix: don’t call options.remote getter on setup
1 parent 005118d commit 183af82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function Store (dbName, options) {
1111
if (!(this instanceof Store)) return new Store(dbName, options)
1212
if (typeof dbName !== 'string') throw new Error('Must be a valid string.')
1313

14-
if (!options || (!options.remote && !options.remoteBaseUrl)) {
14+
if (!options || (!('remote' in options) && !options.remoteBaseUrl)) {
1515
throw new Error('options.remote or options.remoteBaseUrl is required')
1616
}
1717

0 commit comments

Comments
 (0)