review changes

This commit is contained in:
Damodaram 2021-04-22 20:54:44 +05:30
parent c8b382cc89
commit a225cf81e3
3 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ public class ListLeftVariableIconWithRightCaretAllTextLinksModel: ListItemModel,
public var rightLabel: LabelModel
public var children: [MoleculeModelProtocol] {
return [image, eyebrowHeadlineBodyLink,rightLabel]
return [image, eyebrowHeadlineBodyLink, rightLabel]
}
//-----------------------------------------------------

View File

@ -653,7 +653,7 @@ import UIKit
// MARK: - Behavior Execution
//--------------------------------------------------
public func executeBehaviors<T>(_ behaviorBlock: (_ behavior: T) -> Void) {
public func executeBehaviors<T>(_ behaviorBlock: (_ behavior: T) -> Void) {
behaviors?.compactMap { $0 as? T }.forEach { behaviorBlock($0) }
}
}

View File

@ -48,7 +48,7 @@ public class PageGetContactBehavior: PageVisibilityBehavior {
public func getContacts() {
guard let rootMolecules = delegate?.moleculeDelegate?.getRootMolecules() else { return }
let store = CNContactStore()
let consumers: [PageGetContactBehaviorConsumerProtocol] = rootMolecules.allMoleculesOfType()
let consumers: [PageGetContactBehaviorConsumerProtocol] = rootMolecules.allMoleculesOfType()
for consumer in consumers {
guard let parameters = consumer.getMatchParameters(),
let contacts = try? store.unifiedContacts(matching: parameters.0, keysToFetch: parameters.1) else { return }