Skip to content

Commit

Permalink
Disable force_cast warning for Caches Directory File URL
Browse files Browse the repository at this point in the history
  • Loading branch information
winsmith committed Sep 8, 2023
1 parent 1e39d3b commit 32dce9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/TelemetryClient/SignalCache.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,14 @@ internal class SignalCache<T> where T: Codable {
}

private func fileURL() -> URL {
// swiftlint:disable force_try
let cacheFolderURL = try! FileManager.default.url(
for: .cachesDirectory,
in: .userDomainMask,
appropriateFor: nil,
create: false
)
// swiftlint:enable force_try

return cacheFolderURL.appendingPathComponent("telemetrysignalcache")
}
Expand Down

0 comments on commit 32dce9c

Please sign in to comment.