Skip to content

Commit 7f21319

Browse files
committed
Fix swiftlint errors
1 parent 70b135f commit 7f21319

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Sources/Nimble/Utils/AsyncAwait.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,15 +203,15 @@ internal func pollBlock(
203203
precondition(pollInterval > .seconds(0))
204204
let iterations = Int(exactly: (timeoutInterval / pollInterval).rounded(.up)) ?? Int.max
205205

206-
for i in 0..<iterations {
206+
for iteration in 0..<iterations {
207207
do {
208208
if case .finished(let result) = try await expression() {
209209
return .completed(result)
210210
}
211211
} catch {
212212
return .errorThrown(error)
213213
}
214-
if i == (iterations - 1) {
214+
if iteration == (iterations - 1) {
215215
break
216216
}
217217
do {

Sources/Nimble/Utils/PollAwait.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,15 +175,15 @@ internal func pollBlock(
175175
precondition(timeoutInterval > interval)
176176
let iterations = Int(exactly: (timeoutInterval / pollInterval).rounded(.up)) ?? Int.max
177177

178-
for i in 0..<iterations {
178+
for iteration in 0..<iterations {
179179
do {
180180
if case .finished(let result) = try expression() {
181181
return .completed(result)
182182
}
183183
} catch {
184184
return .errorThrown(error)
185185
}
186-
if i == (iterations - 1) {
186+
if iteration == (iterations - 1) {
187187
break
188188
}
189189
RunLoop.main.run(until: Date(timeIntervalSinceNow: pollInterval.timeInterval))

0 commit comments

Comments
 (0)