Skip to content

Commit

Permalink
Fix linter with SwiftLint 0.55.1 (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
pyby authored May 27, 2024
1 parent 5288188 commit 4f611b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Application/Sources/Content/Content.swift
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ private extension Content {
switch contentSection.type {
case .medias:
return dataProvider.medias(for: contentSection.vendor, contentSectionUid: contentSection.uid, pageSize: pageSize, paginatedBy: paginator)
.map { self.filterItems($0).map { .media($0) } }
.map { filterItems($0).map { .media($0) } }
.eraseToAnyPublisher()
case .showAndMedias:
return dataProvider.showAndMedias(for: contentSection.vendor, contentSectionUid: contentSection.uid, pageSize: pageSize, paginatedBy: paginator)
Expand All @@ -421,7 +421,7 @@ private extension Content {
.eraseToAnyPublisher()
case .shows:
return dataProvider.shows(for: contentSection.vendor, contentSectionUid: contentSection.uid, pageSize: pageSize, paginatedBy: paginator)
.map { self.filterItems($0).map { .show($0) } }
.map { filterItems($0).map { .show($0) } }
.eraseToAnyPublisher()
case .predefined:
switch presentation.type {
Expand Down
4 changes: 2 additions & 2 deletions Application/Sources/Helpers/UserConsentHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ enum UCService: Hashable, CaseIterable {

#if os(iOS)
private static func firstLayerButtonSettings(cmpData: UsercentricsCMPData) -> [ButtonSettings] {
var buttons: [ButtonSettings] = [ButtonSettings]()
var buttons = [ButtonSettings]()
buttons.append(button(type: .acceptAll, isPrimary: true))
if !(cmpData.settings.firstLayer?.hideButtonDeny?.boolValue ?? false) {
buttons.append(button(type: .denyAll, isPrimary: true))
Expand All @@ -240,7 +240,7 @@ enum UCService: Hashable, CaseIterable {
}

private static func secondLayerButtonSettings(cmpData: UsercentricsCMPData) -> [ButtonSettings] {
var buttons: [ButtonSettings] = [ButtonSettings]()
var buttons = [ButtonSettings]()
buttons.append(button(type: .acceptAll, isPrimary: false))
if !(cmpData.settings.secondLayer.hideButtonDeny?.boolValue ?? false) {
buttons.append(button(type: .denyAll, isPrimary: false))
Expand Down

0 comments on commit 4f611b8

Please sign in to comment.