Skip to content

Commit 846cb9d

Browse files
stop AI from falsely complaining
1 parent f018662 commit 846cb9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/PowerSync/Protocol/PowerSyncDatabaseProtocol.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public protocol PowerSyncDatabaseProtocol: Queries {
215215
/// The database can still be queried after this is called, but the tables
216216
/// would be empty.
217217
///
218-
/// - Parameter clearLocal: Set to false to preserve data in local-only tables.
218+
/// - Parameter clearLocal: Set to false to preserve data in local-only tables. Defaults to `true`.
219219
func disconnectAndClear(clearLocal: Bool) async throws
220220

221221
/// Close the database, releasing resources.
@@ -265,8 +265,8 @@ public extension PowerSyncDatabaseProtocol {
265265
)
266266
}
267267

268-
func disconnectAndClear(clearLocal: Bool = true) async throws {
269-
try await disconnectAndClear(clearLocal: clearLocal)
268+
func disconnectAndClear() async throws {
269+
try await disconnectAndClear(clearLocal: true)
270270
}
271271

272272
func getCrudBatch(limit: Int32 = 100) async throws -> CrudBatch? {

0 commit comments

Comments
 (0)