Skip to content

Commit c18e00c

Browse files
committed
Remove custom error
1 parent fadbf96 commit c18e00c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/powersync-op-sqlite/src/db/OPSqliteAdapter.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,6 @@ export class OPSQLiteDBAdapter extends BaseObserver<DBAdapterListener> implement
124124
private openDatabase(dbFilename: string, encryptionKey?: string): DB {
125125
//This is needed because an undefined/null dbLocation will cause the open function to fail
126126
const location = this.getDbLocation(this.options.dbLocation);
127-
if (encryptionKey && encryptionKey === '') {
128-
throw new Error('Encryption key cannot be empty when using SQLCipher');
129-
}
130127
//Simarlily if the encryption key is undefined/null when using SQLCipher it will cause the open function to fail
131128
if (encryptionKey) {
132129
return open({

0 commit comments

Comments
 (0)