From 37494cd903b96c89ee24867dd8c09637f67e8c59 Mon Sep 17 00:00:00 2001 From: Shang Date: Mon, 21 Jun 2021 16:24:09 +0800 Subject: [PATCH] add @discardableResult --- Sources/Then/Then.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/Then/Then.swift b/Sources/Then/Then.swift index fa0da8c..e83594a 100644 --- a/Sources/Then/Then.swift +++ b/Sources/Then/Then.swift @@ -68,6 +68,7 @@ extension Then where Self: AnyObject { /// $0.textColor = UIColor.black /// $0.text = "Hello, World!" /// } + @discardableResult @inlinable public func then(_ block: (Self) throws -> Void) rethrows -> Self { try block(self)