From 3103e6e373f7c52eee0ddba47ddaf6d4cec291be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 7 Jun 2020 15:55:46 +0200 Subject: [PATCH] Fix Swiftlint warning --- GRDB/Core/Database.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GRDB/Core/Database.swift b/GRDB/Core/Database.swift index 6ffbe95e0..da522e3f4 100644 --- a/GRDB/Core/Database.swift +++ b/GRDB/Core/Database.swift @@ -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))