Skip to content

Commit c520836

Browse files
delete duplicate code block
1 parent fa38d31 commit c520836

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Sources/PowerSyncGRDB/Config/Configuration+PowerSync.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ public extension Configuration {
2525
) {
2626
// Register the PowerSync core extension
2727
prepareDatabase { database in
28-
let initResult = sqlite3_powersync_init(database.sqliteConnection, nil, nil)
29-
if initResult != SQLITE_OK {
30-
throw PowerSyncGRDBError.extensionLoadFailed("Could not initialize PowerSync")
31-
}
3228
guard let extensionPath = try resolvePowerSyncLoadableExtensionPath() else {
3329
// We get the extension path for non WatchOS platforms.
3430
// The Kotlin registration for automatically loading the extension does not seem to work.

0 commit comments

Comments
 (0)