Skip to content

Commit a535e4c

Browse files
committed
Fix swiftlint errors
1 parent 3be047d commit a535e4c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/Nimble/Utils/AsyncAwait.swift

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

211-
for i in 0..<iterations {
211+
for iteration in 0..<iterations {
212212
do {
213213
if case .finished(let result) = try await expression() {
214214
return .completed(result)
215215
}
216216
} catch {
217217
return .errorThrown(error)
218218
}
219-
if i == (iterations - 1) {
219+
if iteration == (iterations - 1) {
220220
break
221221
}
222222
do {

Sources/Nimble/Utils/PollAwait.swift

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

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

0 commit comments

Comments
 (0)