Fix Swiftlint warning

This commit is contained in:
Gwendal Roué committed 2020-06-07 17:07:31 +02:00
1 parent 3a42a4bf9f
commit 3103e6e373
1 file changed
+2 -1
+2 -1
View File
@@ -642,7 +642,8 @@ public final class Database: CustomStringConvertible, CustomDebugStringConvertib
SchedulingWatchdog.preconditionValidQueue(self)
var walFrameCount: CInt = -1
var checkpointedFrameCount: CInt = -1
let code = sqlite3_wal_checkpoint_v2(sqliteConnection, dbName, kind.rawValue, &walFrameCount, &checkpointedFrameCount)
let code = sqlite3_wal_checkpoint_v2(sqliteConnection, dbName, kind.rawValue,
&walFrameCount, &checkpointedFrameCount)
switch code {
case SQLITE_OK:
return (walFrameCount: Int(walFrameCount), checkpointedFrameCount: Int(checkpointedFrameCount))