From 4f611b8f8b138c679eed640e7b31710de4ac11f0 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Date: Mon, 27 May 2024 11:36:39 +0200 Subject: [PATCH] Fix linter with SwiftLint 0.55.1 (#484) --- Application/Sources/Content/Content.swift | 4 ++-- Application/Sources/Helpers/UserConsentHelper.swift | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Application/Sources/Content/Content.swift b/Application/Sources/Content/Content.swift index e4557761a..7d61943b0 100644 --- a/Application/Sources/Content/Content.swift +++ b/Application/Sources/Content/Content.swift @@ -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) @@ -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 { diff --git a/Application/Sources/Helpers/UserConsentHelper.swift b/Application/Sources/Helpers/UserConsentHelper.swift index 82a31842b..8f36be04e 100644 --- a/Application/Sources/Helpers/UserConsentHelper.swift +++ b/Application/Sources/Helpers/UserConsentHelper.swift @@ -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)) @@ -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))