Skip to content

Commit

Permalink
[SwiftLint] Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hboon committed Oct 22, 2023
1 parent 7cb61d4 commit a758dfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ public extension Sequence {
}

func asyncContains(where predicate: (Self.Element) async throws -> Bool) async rethrows -> Bool {
for element in self {
if try await predicate(element) {
return true
}
for element in self where try await predicate(element) {
return true
}
return false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public protocol CrashlyticsReporter: AnyObject {
public let crashlytics = CrashlyticsService()

public final actor CrashlyticsService: NSObject, CrashlyticsReporter {
private var services: Array<CrashlyticsReporter> = .init()
private var services: [CrashlyticsReporter] = []

public override init() { }

Expand Down

0 comments on commit a758dfa

Please sign in to comment.