Skip to content

Commit

Permalink
pass swift-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dhayab committed Jul 23, 2024
1 parent 65f7484 commit 172bab0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public class MultiIndexSearcher: Searcher, SequencerDelegate, SearchResultObserv
processingQueue.maxConcurrentOperationCount = 1
processingQueue.qualityOfService = .userInitiated

pageLoaders = indexQueryStates.enumerated().map { [weak self] index, _ in
pageLoaders = indexQueryStates.indices.map { [weak self] index in
return PageLoaderProxy(setPage: { self?.indexQueryStates[index].query.page = $0 }, launchSearch: { self?.search() })
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public extension SortByConnector {
controller: Controller,
presenter: @escaping IndexNamePresenter = DefaultPresenter.IndexName.present) where Controller.SegmentKey == Int {
let enumeratedIndices = indicesNames
.enumerated()
.map { $0 }
.indices
.map { ($0, indicesNames[$0]) }
let items = [Int: IndexName](uniqueKeysWithValues: enumeratedIndices)
let interactor = SortByInteractor(items: items)
interactor.selected = selected
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ public class SortByConnector {

set {
let enumeratedIndices = newValue
.enumerated()
.map { $0 }
.indices
.map { ($0, newValue[$0]) }
interactor.items = [Int: IndexName](uniqueKeysWithValues: enumeratedIndices)
}
}
Expand Down Expand Up @@ -76,8 +76,8 @@ public class SortByConnector {
indicesNames: [IndexName],
selected: Int? = nil) {
let enumeratedIndices = indicesNames
.enumerated()
.map { $0 }
.indices
.map { ($0, indicesNames[0]) }
let items = [Int: IndexName](uniqueKeysWithValues: enumeratedIndices)
let interactor = SortByInteractor(items: items)
interactor.selected = selected
Expand Down

0 comments on commit 172bab0

Please sign in to comment.