Skip to content

Commit 12baad3

Browse files
committed
Cleanup print statement
1 parent ee88681 commit 12baad3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/powersync_sqlcipher/lib/src/sqlcipher.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,8 @@ class PowerSyncSQLCipherOpenFactory extends PowerSyncOpenFactory {
3131
var db = super.open(options);
3232
final versionRows = db.select('PRAGMA cipher_version');
3333
if (versionRows.isEmpty) {
34-
throw AssertionError(
34+
throw StateError(
3535
"SQLCipher was not initialized correctly. 'PRAGMA cipher_version' returned no rows.");
36-
} else {
37-
//TODO: Remove before publishing
38-
print("RUNNING with cipher ${versionRows.rows.first}");
3936
}
4037
return db;
4138
}

0 commit comments

Comments
 (0)