Skip to content

Commit

Permalink
Disable SwiftLint rule nesting
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandroboron committed Dec 16, 2024
1 parent 76397dc commit 0838920
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0838920

Please sign in to comment.