From f0bc55e0f02e5126f13324277c5da0bcd693c469 Mon Sep 17 00:00:00 2001 From: Nolan Waite Date: Fri, 6 Dec 2019 16:37:45 -0400 Subject: [PATCH] Fix tryMap block return value nullability Was preventing returning `nil` in Swift. --- ReactiveObjC/RACSignal+Operations.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactiveObjC/RACSignal+Operations.h b/ReactiveObjC/RACSignal+Operations.h index 5d645e6f8..275822b2b 100644 --- a/ReactiveObjC/RACSignal+Operations.h +++ b/ReactiveObjC/RACSignal+Operations.h @@ -440,7 +440,7 @@ typedef NS_ERROR_ENUM(RACSignalErrorDomain, RACSignalError) { /// Returns a signal which transforms all the values of the receiver. If /// `mapBlock` returns nil for any value, the returned signal will error using /// the `NSError` passed out from the block. -- (RACSignal *)tryMap:(id (^)(id _Nullable value, NSError **errorPtr))mapBlock RAC_WARN_UNUSED_RESULT; +- (RACSignal *)tryMap:(id _Nullable (^)(id _Nullable value, NSError **errorPtr))mapBlock RAC_WARN_UNUSED_RESULT; /// Returns the first `next`. Note that this is a blocking call. - (nullable ValueType)first;