Skip to content

Commit a484254

Browse files
committed
chore: fix swiftlint errors
1 parent 7d62ec5 commit a484254

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

Amplify/Categories/DataStore/Model/Internal/Schema/ModelField+Association.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ import Foundation
8686
///
8787
/// - Warning: Although this has `public` access, it is intended for internal & codegen use and should not be used
8888
/// directly by host applications. The behavior of this may change without warning.
89-
public enum ModelAssociation : @unchecked Sendable {
89+
public enum ModelAssociation: @unchecked Sendable {
9090
case hasMany(associatedFieldName: String?, associatedFieldNames: [String] = [])
9191
case hasOne(associatedFieldName: String?, associatedFieldNames: [String] = [], targetNames: [String])
9292
case belongsTo(associatedFieldName: String?, targetNames: [String])

Amplify/Categories/DataStore/Model/Temporal/Date+Operation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import Foundation
1717
///
1818
/// let yesterday = Temporal.Date.now() - .days(1)
1919
/// let sixMonthsAgo = Temporal.Date.now() - .months(6)
20-
public struct DateUnit : @unchecked Sendable {
20+
public struct DateUnit: @unchecked Sendable {
2121
let calendarComponent: Calendar.Component
2222
let value: Int
2323

Amplify/Categories/DataStore/Model/Temporal/TemporalFormat.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import Foundation
99

10-
public struct TemporalFormat : @unchecked Sendable {
10+
public struct TemporalFormat: @unchecked Sendable {
1111
let dateFormat: String
1212
let dateTimeFormat: String
1313
let timeFormat: String

Amplify/Categories/DataStore/Model/Temporal/Time+Operation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import Foundation
1919
/// - Attention: **Don't** use `TimeUnit` to calculate dates, use `DateUnit` instead.
2020
/// Also make sure to use the most applicable `Unit`, e.g. don't use `.minutes(60)` if you really want `.hours(1)`.
2121
/// There are not always 24 hours in a day, 60 minutes in an hour, etc.
22-
public struct TimeUnit : @unchecked Sendable {
22+
public struct TimeUnit: @unchecked Sendable {
2323
public let calendarComponent: Calendar.Component
2424
public let value: Int
2525

Amplify/Categories/DataStore/Subscribe/DataStoreQuerySnapshot.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Foundation
99

1010
/// A snapshot of the items from DataStore, the changes since last snapshot, and whether this model has
1111
/// finished syncing and subscriptions are active
12-
public struct DataStoreQuerySnapshot<M> : @unchecked Sendable {
12+
public struct DataStoreQuerySnapshot<M>: @unchecked Sendable {
1313

1414
/// All model instances from the local store
1515
public let items: [M]

Amplify/Categories/Geo/Types/Geo+Country.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Foundation
99

1010
public extension Geo {
1111
/// Country codes for use with Amplify Geo.
12-
struct Country : @unchecked Sendable {
12+
struct Country: @unchecked Sendable {
1313
public let code: String
1414
public let description: String
1515
}

Amplify/Categories/Predictions/Models/Gender.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
extension Predictions {
99
/// Describes gender of an entity identified as a result of
1010
/// identify() API
11-
public struct Gender : @unchecked Sendable {
11+
public struct Gender: @unchecked Sendable {
1212
let id: UInt8
1313

1414
public static let unknown = Self(id: 0)

Amplify/Core/Configuration/AmplifyOutputsData.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public struct AmplifyOutputsData: Codable {
267267
// MARK: - Configure
268268

269269
/// Represents helper methods to configure with Amplify CLI Gen2 configuration.
270-
public struct AmplifyOutputs : @unchecked Sendable {
270+
public struct AmplifyOutputs: @unchecked Sendable {
271271

272272
/// A closure that resolves the `AmplifyOutputsData` configuration
273273
@_spi(InternalAmplifyConfiguration)

0 commit comments

Comments
 (0)