Fix Swiftlint warnings

This commit is contained in:
Gwendal Roué committed 2021-11-07 10:32:00 +01:00
1 parent 72271b0299
commit af2d65ef49
2 files changed
+8 -3

No files matched your search

+7 -2
View File
@@ -800,9 +800,14 @@ public struct ForeignKeyViolation: FetchableRecord, CustomStringConvertible {
public var description: String {
if let originRowID = originRowID {
return "FOREIGN KEY constraint violation - from \(originTable) to \(destinationTable), in rowid \(originRowID)"
return """
FOREIGN KEY constraint violation - from \(originTable) to \(destinationTable), \
in rowid \(originRowID)
"""
} else {
return "FOREIGN KEY constraint violation - from \(originTable) to \(destinationTable)"
return """
FOREIGN KEY constraint violation - from \(originTable) to \(destinationTable)
"""
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
/// An internal struct that defines a migration.
struct Migration {
public enum ForeignKeyChecks {
enum ForeignKeyChecks {
case deferred
case immediate
case disabled