Skip to content

Commit

Permalink
Fix compilation warnings with Swift 5.1 (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
djones6 authored Jun 21, 2019
1 parent 1eb0e24 commit bdd4abf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/KituraContracts/Contracts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ public struct Pagination: Codable {
}

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

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

/// Creates a ExclusiveRange instance from a given String value
public init(string value: String) throws {
var array = value.split(separator: ",")
let array = value.split(separator: ",")
if array.count != 2 {
throw QueryParamsError.invalidValue
}
Expand Down

0 comments on commit bdd4abf

Please sign in to comment.