From 52491bf3d57ff1da945b9fd2daa23e30a5d3dbba Mon Sep 17 00:00:00 2001 From: Sabrina Tardio Date: Fri, 26 Apr 2024 16:08:02 +0200 Subject: [PATCH] fix lint errors --- DuckDuckGo/Preferences/Model/SyncPreferences.swift | 1 - DuckDuckGo/Preferences/View/PreferencesSyncView.swift | 2 +- .../SyncUI/Sources/SyncUI/ViewModels/ManagementViewModel.swift | 1 - UnitTests/Sync/Mocks/MockAppearancePreferencesPersistor.swift | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/DuckDuckGo/Preferences/Model/SyncPreferences.swift b/DuckDuckGo/Preferences/Model/SyncPreferences.swift index 4e307ba871..b14a7a56c5 100644 --- a/DuckDuckGo/Preferences/Model/SyncPreferences.swift +++ b/DuckDuckGo/Preferences/Model/SyncPreferences.swift @@ -87,7 +87,6 @@ final class SyncPreferences: ObservableObject, SyncUI.ManagementViewModel { return syncPreferencesErrorHandler.syncCredentialsPausedMetadata.syncPausedAction } - struct Consts { static let syncPausedStateChanged = Notification.Name("com.duckduckgo.app.SyncPausedStateChanged") } diff --git a/DuckDuckGo/Preferences/View/PreferencesSyncView.swift b/DuckDuckGo/Preferences/View/PreferencesSyncView.swift index dba191fbdc..72391df427 100644 --- a/DuckDuckGo/Preferences/View/PreferencesSyncView.swift +++ b/DuckDuckGo/Preferences/View/PreferencesSyncView.swift @@ -29,7 +29,7 @@ struct SyncView: View { let syncPreferences = SyncPreferences( syncService: syncService, syncBookmarksAdapter: syncDataProviders.bookmarksAdapter, - syncCredentialsAdapter: syncDataProviders.credentialsAdapter, + syncCredentialsAdapter: syncDataProviders.credentialsAdapter, syncPreferencesErrorHandler: syncDataProviders.syncErrorHandler ) SyncUI.ManagementView(model: syncPreferences) diff --git a/LocalPackages/SyncUI/Sources/SyncUI/ViewModels/ManagementViewModel.swift b/LocalPackages/SyncUI/Sources/SyncUI/ViewModels/ManagementViewModel.swift index 7efde0c1bb..1a6fea403f 100644 --- a/LocalPackages/SyncUI/Sources/SyncUI/ViewModels/ManagementViewModel.swift +++ b/LocalPackages/SyncUI/Sources/SyncUI/ViewModels/ManagementViewModel.swift @@ -46,7 +46,6 @@ public protocol ManagementViewModel: ObservableObject { var syncCredentialsPausedButtonTitle: String { get } var syncCredentialsPausedButtonAction: (() -> Void)? { get } - var invalidBookmarksTitles: [String] { get } var invalidCredentialsTitles: [String] { get } diff --git a/UnitTests/Sync/Mocks/MockAppearancePreferencesPersistor.swift b/UnitTests/Sync/Mocks/MockAppearancePreferencesPersistor.swift index 2191b46df0..f3d1de7fef 100644 --- a/UnitTests/Sync/Mocks/MockAppearancePreferencesPersistor.swift +++ b/UnitTests/Sync/Mocks/MockAppearancePreferencesPersistor.swift @@ -1,5 +1,5 @@ // -// MockPersistor.swift +// MockAppearancePreferencesPersistor.swift // // Copyright © 2024 DuckDuckGo. All rights reserved. //