Skip to content

Commit

Permalink
fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
andresilveirah committed Feb 23, 2024
1 parent 5d9b5bc commit 55406d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion ConsentViewController/Classes/SPConsentManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

import Foundation
import UIKit
// swiftlint:disable file_length

// swiftlint:disable file_length function_parameter_count
@objcMembers public class SPConsentManager: NSObject {
static let DefaultTimeout = TimeInterval(30)
public static var shouldCallErrorMetrics = true
Expand Down Expand Up @@ -701,3 +702,5 @@ func mainSync<T>(execute work: () throws -> T) rethrows -> T {

return try DispatchQueue.main.sync { try work() }
}

// swiftlint:enable function_parameter_count
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public func containQueryParam(_ name: String, withValue value: String) -> Predic
guard let actual = try actual.evaluate(),
let params = actual.queryParams
else {
return PredicateResult(bool: false, message: .fail("could not get query params from URL(\(try? actual.evaluate()?.absoluteString))"))
return PredicateResult(bool: false, message: .fail("could not get query params from URL(\(try? actual.evaluate()?.absoluteString as Any))"))
}
var pass = false
var message = ""
Expand Down

0 comments on commit 55406d6

Please sign in to comment.