Remove compiler warning

This commit is contained in:
Gwendal Roué committed 2017-12-08 10:51:31 +01:00
1 parent 3a157d2808
commit d567ee60bf
1 file changed
+1 -1
+1 -1
View File
@@ -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 }