code review

This commit is contained in:
Kyle Matthew Hedden 2020-07-01 14:55:21 -04:00
parent 50888916cb
commit 012d16ed09

View File

@ -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)
}