Skip to content

Commit 4287f43

Browse files
committed
better checkRedundantConfig
1 parent a0a2f93 commit 4287f43

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/globcon/mod.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ export function checkHttpUrl(url: string) {
4343
}
4444

4545
export function checkRedundantConfig(conf: libsqlConfig) {
46-
if (conf.encryptionKey) conserror("'encryptionKey' config unsupported.");
47-
if (conf.syncUrl) conserror("'syncUrl' config unsupported because 'url' is the remote url. (embedded replicas unsupported)");
48-
if (conf.syncInterval) conserror("'syncInterval' config unsupported because nothing to sync. (embedded replicas unsupported)");
49-
if (conf.tls) conserror("'tls' config unsupported. Change url scheme to 'http' for no tls and 'https' for tls.");
50-
if (conf.concurrency) conserror("'concurrency' config unsupported. You may use a custom fetch to specify concurrency.");
46+
if (conf.encryptionKey !== undefined) conserror("'encryptionKey' config unsupported.");
47+
if (conf.syncUrl !== undefined) conserror("'syncUrl' config unsupported because 'url' is the remote url. (embedded replicas unsupported)");
48+
if (conf.syncInterval !== undefined) conserror("'syncInterval' config unsupported because nothing to sync. (embedded replicas unsupported)");
49+
if (conf.tls !== undefined) conserror("'tls' config unsupported. Change url scheme to 'http' for no tls and 'https' for tls.");
50+
if (conf.concurrency !== undefined) conserror("'concurrency' config unsupported. You may use a custom fetch to specify concurrency.");
5151
}

0 commit comments

Comments
 (0)