From 82c76c6084158d223cb7c189f7582d2f96da142d Mon Sep 17 00:00:00 2001 From: "Robinson, Blake" Date: Thu, 19 Dec 2019 10:37:57 -0500 Subject: [PATCH] Removed self where unnecessary --- MVMCoreUI/Atoms/Buttons/Button.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MVMCoreUI/Atoms/Buttons/Button.swift b/MVMCoreUI/Atoms/Buttons/Button.swift index 66bed2b3..2845e66a 100644 --- a/MVMCoreUI/Atoms/Buttons/Button.swift +++ b/MVMCoreUI/Atoms/Buttons/Button.swift @@ -26,12 +26,12 @@ public typealias ButtonBlock = (Button) -> Void public func setWithActionMap(_ actionMap: [AnyHashable: Any]?, delegateObject: MVMCoreUIDelegateObject?, additionalData: [AnyHashable: Any]?) { self.actionMap = actionMap - self.titleLabel?.numberOfLines = 0 - self.titleLabel?.lineBreakMode = .byWordWrapping + titleLabel?.numberOfLines = 0 + titleLabel?.lineBreakMode = .byWordWrapping buttonDelegate = delegateObject?.buttonDelegate - self.addBlock({ [weak self] (sender) in + addBlock({ [weak self] (sender) in guard let self = self, let performAction = self.buttonDelegate?.button?(self, shouldPerformActionWithMap: actionMap, additionalData: additionalData), performAction else { return }