diff --git a/DuckDuckGo/MaliciousSiteProtection/MaliciousSiteProtectionManager+Config.swift b/DuckDuckGo/MaliciousSiteProtection/MaliciousSiteProtectionManager+Config.swift index 3323ae703d..4578482ba6 100644 --- a/DuckDuckGo/MaliciousSiteProtection/MaliciousSiteProtectionManager+Config.swift +++ b/DuckDuckGo/MaliciousSiteProtection/MaliciousSiteProtectionManager+Config.swift @@ -40,6 +40,7 @@ extension MaliciousSiteProtectionManager { struct EmbeddedDataProvider: MaliciousSiteProtection.EmbeddedDataProviding { + // swiftlint:disable:next nesting private enum Constants { static let embeddedDataRevision = 1696473 static let phishingEmbeddedHashPrefixDataSHA = "cdb609c37e950b7d0dcdaa80ae4071cf2c87223cfdd189caafae723722bd3158" diff --git a/DuckDuckGoTests/MaliciousSiteProtection/Mocks/MaliciousSiteProtectionMocks.swift b/DuckDuckGoTests/MaliciousSiteProtection/Mocks/MaliciousSiteProtectionMocks.swift index 45dab0449a..0944c13579 100644 --- a/DuckDuckGoTests/MaliciousSiteProtection/Mocks/MaliciousSiteProtectionMocks.swift +++ b/DuckDuckGoTests/MaliciousSiteProtection/Mocks/MaliciousSiteProtectionMocks.swift @@ -45,6 +45,7 @@ final class MockMaliciousSiteDataProvider: MaliciousSiteProtection.EmbeddedDataP func hash(for dataType: MaliciousSiteProtection.DataManager.StoredDataType) -> String { let url = url(for: dataType) + // swiftlint:disable:next force_try let data = try! data(withContentsOf: url) let sha = data.sha256 return sha