Merge pull request #1052 from jason-gabriele/fix-swift-error

Change init to fix Swift error
This commit is contained in:
Gwendal Roué authored and GitHub committed 2021-09-22 10:34:43 +02:00
commit bc9ea84bb2
1 file changed
+1 -2
@@ -84,8 +84,7 @@ public struct DatabaseDateComponents: DatabaseValueConvertible, StatementColumnC
guard let components = optionalComponents else {
return nil
}
self.dateComponents = components.dateComponents
self.format = components.format
self.init(components.dateComponents, format: components.format)
}
// MARK: - DatabaseValueConvertible adoption