mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
Remove compiler warning
This commit is contained in:
1 parent
3a157d2808
commit
d567ee60bf
1 file changed
+1
-1
@@ -48,7 +48,7 @@ public final class Database {
|
||||
/// > for debugging.
|
||||
public static var logError: LogErrorFunction? = nil {
|
||||
didSet {
|
||||
if let logError = logError {
|
||||
if logError != nil {
|
||||
registerErrorLogCallback { (_, code, message) in
|
||||
guard let logError = Database.logError else { return }
|
||||
guard let message = message.map({ String(cString: $0) }) else { return }
|
||||
|
||||
Reference in new issue
Block a user