Skip to content

Commit c481213

Browse files
author
Simon Pilkington
committed
Fix linting issues.
1 parent 423c1a0 commit c481213

10 files changed

+25
-18
lines changed

Package.resolved

Lines changed: 13 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/SmokeDynamoDB/AWSDynamoDBKeysProjection+DynamoDBKeysProjectionSync.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,3 @@ public extension AWSDynamoDBKeysProjection {
8484
}
8585
}
8686
}
87-

Sources/SmokeDynamoDB/AWSDynamoDBKeysProjection.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,3 @@ public class AWSDynamoDBKeysProjection: DynamoDBKeysProjection {
8282
dynamodb.wait()
8383
}
8484
}
85-

Sources/SmokeDynamoDB/DynamoDBKeysProjection.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public protocol DynamoDBKeysProjection {
3131
the query.
3232
*/
3333
func querySync<AttributesType>(forPartitionKey partitionKey: String,
34-
sortKeyCondition: AttributeCondition?) throws
34+
sortKeyCondition: AttributeCondition?) throws
3535
-> [CompositePrimaryKey<AttributesType>]
3636

3737
func queryAsync<AttributesType>(
@@ -45,9 +45,9 @@ public protocol DynamoDBKeysProjection {
4545
function will return paginated results based on the limit and exclusiveStartKey provided.
4646
*/
4747
func querySync<AttributesType>(forPartitionKey partitionKey: String,
48-
sortKeyCondition: AttributeCondition?,
49-
limit: Int?,
50-
exclusiveStartKey: String?) throws
48+
sortKeyCondition: AttributeCondition?,
49+
limit: Int?,
50+
exclusiveStartKey: String?) throws
5151
-> ([CompositePrimaryKey<AttributesType>], String?)
5252

5353
func queryAsync<AttributesType>(

Sources/SmokeDynamoDB/InMemoryDynamoDBKeysProjection.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ public class InMemoryDynamoDBKeysProjection: DynamoDBKeysProjection {
102102
}
103103

104104
public func querySync<AttributesType>(forPartitionKey partitionKey: String,
105-
sortKeyCondition: AttributeCondition?,
106-
limit: Int?,
107-
exclusiveStartKey: String?) throws
105+
sortKeyCondition: AttributeCondition?,
106+
limit: Int?,
107+
exclusiveStartKey: String?) throws
108108
-> ([CompositePrimaryKey<AttributesType>], String?)
109109
where AttributesType: PrimaryKeyAttributes {
110110
// get all the results

Sources/SmokeDynamoDB/InternalKeyedDecodingContainer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import Foundation
1919
import DynamoDBModel
2020

21-
internal struct InternalKeyedDecodingContainer<K: CodingKey> : KeyedDecodingContainerProtocol {
21+
internal struct InternalKeyedDecodingContainer<K: CodingKey>: KeyedDecodingContainerProtocol {
2222
typealias Key = K
2323

2424
private let decodingContainer: InternalSingleValueDecodingContainer

Sources/SmokeDynamoDB/InternalKeyedEncodingContainer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import Foundation
1919
import DynamoDBModel
2020

21-
internal struct InternalKeyedEncodingContainer<K: CodingKey> : KeyedEncodingContainerProtocol {
21+
internal struct InternalKeyedEncodingContainer<K: CodingKey>: KeyedEncodingContainerProtocol {
2222
typealias Key = K
2323

2424
private let enclosingContainer: InternalSingleValueEncodingContainer

Sources/SmokeDynamoDB/PolymorphicDatabaseItem.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public protocol PossibleItemTypes {
2121
static var types: [Codable.Type] { get }
2222
}
2323

24-
public struct PolymorphicDatabaseItem<AttributesType: PrimaryKeyAttributes, PossibleTypes: PossibleItemTypes> : Decodable {
24+
public struct PolymorphicDatabaseItem<AttributesType: PrimaryKeyAttributes, PossibleTypes: PossibleItemTypes>: Decodable {
2525
public let compositePrimaryKey: CompositePrimaryKey<AttributesType>
2626
public let createDate: Date
2727
public let rowStatus: RowStatus

Sources/SmokeDynamoDB/RowWithIndex.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public func createRowWithIndexCodingKey(stringValue: String) -> RowWithIndexCodi
4242
return RowWithIndexCodingKey.init(stringValue: stringValue)!
4343
}
4444

45-
public struct RowWithIndex<RowType: Codable, Identity: IndexIdentity> : Codable, CustomRowTypeIdentifier {
45+
public struct RowWithIndex<RowType: Codable, Identity: IndexIdentity>: Codable, CustomRowTypeIdentifier {
4646

4747
public static var rowTypeIdentifier: String? {
4848
let rowTypeIdentity = getTypeRowIdentifier(type: RowType.self)

Sources/SmokeDynamoDB/RowWithItemVersion.swift

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

1818
import Foundation
1919

20-
public struct RowWithItemVersion<RowType: Codable> : Codable, CustomRowTypeIdentifier {
20+
public struct RowWithItemVersion<RowType: Codable>: Codable, CustomRowTypeIdentifier {
2121

2222
public static var rowTypeIdentifier: String? {
2323
let rowTypeIdentity = getTypeRowIdentifier(type: RowType.self)

0 commit comments

Comments
 (0)