Skip to content

Commit

Permalink
Remove swiftlint exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
bilaalrashid committed Jun 2, 2024
1 parent c988a46 commit db004b9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Sources/BbcNews/BbcNews.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public struct BbcNews {

// MARK: - Instance methods

#if canImport(UIKit)
#if canImport(UIKit)
/// Creates an instance of `BbcNews` for making network requests to the BBC News API.
///
/// This initialises the User-Agent string, based upon the operating system and device that the request is performed from. Defaulting
Expand All @@ -108,7 +108,7 @@ public struct BbcNews {
systemVersion: UIDevice.current.systemVersion
)
}
#endif
#endif

/// Creates an instance of `BbcNews` for making network requests to the BBC News API.
///
Expand Down Expand Up @@ -206,11 +206,9 @@ public struct BbcNews {
/// - Parameter url: The URL to fetch.
/// - Returns: The fetched page.
public func fetch(url: URL) async throws -> FDResult {
// swiftlint:disable indentation_width
#if canImport(OSLog)
#if canImport(OSLog)
Logger.network.debug("Requesting: \(url, privacy: .public)")
#endif
// swiftlint:enable indentation_width
#endif

let (data, response) = try await self.session.data(from: url)

Expand Down

0 comments on commit db004b9

Please sign in to comment.