Skip to content

Commit bdd4abf

Browse files
authored
Fix compilation warnings with Swift 5.1 (#42)
1 parent 1eb0e24 commit bdd4abf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Sources/KituraContracts/Contracts.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ public struct Pagination: Codable {
10731073
}
10741074

10751075
internal init(string value: String) throws {
1076-
var array = value.split(separator: ",")
1076+
let array = value.split(separator: ",")
10771077
if array.count != 2 {
10781078
throw QueryParamsError.invalidValue
10791079
}
@@ -1366,7 +1366,7 @@ public struct InclusiveRange<I: Identifier>: Operation {
13661366

13671367
/// Creates a InclusiveRange instance from a given String value
13681368
public init(string value: String) throws {
1369-
var array = value.split(separator: ",")
1369+
let array = value.split(separator: ",")
13701370
if array.count != 2 {
13711371
throw QueryParamsError.invalidValue
13721372
}
@@ -1420,7 +1420,7 @@ public struct ExclusiveRange<I: Identifier>: Operation {
14201420

14211421
/// Creates a ExclusiveRange instance from a given String value
14221422
public init(string value: String) throws {
1423-
var array = value.split(separator: ",")
1423+
let array = value.split(separator: ",")
14241424
if array.count != 2 {
14251425
throw QueryParamsError.invalidValue
14261426
}

0 commit comments

Comments
 (0)