Skip to content

Commit

Permalink
Update swift versions in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Sep 1, 2023
1 parent 4513d31 commit 0d9765c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ jobs:
strategy:
matrix:
tag:
- swift:5.2
- swift:5.3
- swift:5.4
- swift:5.5
- swift:5.6
- swift:5.7
- swift:5.8
container:
image: ${{ matrix.tag }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion Sources/JMESPath/Functions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ struct SortFunction: JMESFunction {
case .array(let array):
let jmesArray = array.map { JMESVariable(from: $0) }
let sorted = jmesArray.sorted { $0.compare(.lessThan, value: $1) == true }
// can use compact map here as we are guaranteed they won't be `nil` given the
// can use compact map here as we are guaranteed they won't be `nil` given the
// function signature requires numbers or strings
return .array(sorted.compactMap { $0.collapse() })
default:
Expand Down

0 comments on commit 0d9765c

Please sign in to comment.