code review
This commit is contained in:
parent
50888916cb
commit
012d16ed09
@ -396,8 +396,8 @@ public typealias ActionBlockConfirmation = () -> (Bool)
|
||||
let alternateActionMap = model.alternateAction?.toJSON()
|
||||
if actionMap != nil || alternateActionMap != nil {
|
||||
didToggleAction = { [weak self] in
|
||||
guard let strongSelf = self else { return }
|
||||
if strongSelf.isOn {
|
||||
guard let self = self else { return }
|
||||
if self.isOn {
|
||||
if actionMap != nil {
|
||||
MVMCoreActionHandler.shared()?.handleAction(with: actionMap, additionalData: additionalData, delegateObject: delegateObject)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user