From 012d16ed09893d7722fa123e1cef4ee4210c1c6f Mon Sep 17 00:00:00 2001 From: Kyle Matthew Hedden Date: Wed, 1 Jul 2020 14:55:21 -0400 Subject: [PATCH] code review --- MVMCoreUI/Atomic/Atoms/Views/Toggle.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MVMCoreUI/Atomic/Atoms/Views/Toggle.swift b/MVMCoreUI/Atomic/Atoms/Views/Toggle.swift index bb75d963..dfffcded 100644 --- a/MVMCoreUI/Atomic/Atoms/Views/Toggle.swift +++ b/MVMCoreUI/Atomic/Atoms/Views/Toggle.swift @@ -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) }