From 1e3f490b6dc6c0f6c35d50d4059bbe44802794eb Mon Sep 17 00:00:00 2001 From: Hwee-Boon Yar Date: Thu, 14 Nov 2019 15:37:28 +0800 Subject: [PATCH] Make result of subscribe() discardable --- AlphaWallet/Foundation/Subscribable.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AlphaWallet/Foundation/Subscribable.swift b/AlphaWallet/Foundation/Subscribable.swift index 51f8a781e..533379cba 100644 --- a/AlphaWallet/Foundation/Subscribable.swift +++ b/AlphaWallet/Foundation/Subscribable.swift @@ -34,7 +34,7 @@ open class Subscribable { _value = value } - open func subscribe(_ subscribe: @escaping (T?) -> Void) -> SubscribableKey { + @discardableResult open func subscribe(_ subscribe: @escaping (T?) -> Void) -> SubscribableKey { if let value = _value { subscribe(value) }