Skip to content

Commit e152bb1

Browse files
committed
RACSignal+Operations: make -catch: and -doError: accept nil errors.
Since it's possible to create `RACSignal` with `nil` error, these operators cannot guarantee a non null error.
1 parent afc23f6 commit e152bb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ReactiveObjC/RACSignal+Operations.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ extern const NSInteger RACSignalErrorNoMatchingCase;
4141

4242
/// Do the given block on `error`. This should be used to inject side effects
4343
/// into the signal.
44-
- (RACSignal<ValueType> *)doError:(void (^)(NSError * _Nonnull error))block RAC_WARN_UNUSED_RESULT;
44+
- (RACSignal<ValueType> *)doError:(void (^)(NSError * _Nullable error))block RAC_WARN_UNUSED_RESULT;
4545

4646
/// Do the given block on `completed`. This should be used to inject side effects
4747
/// into the signal.
@@ -385,7 +385,7 @@ _Pragma("clang diagnostic pop")
385385
- (RACSignal *)takeUntilReplacement:(RACSignal *)replacement RAC_WARN_UNUSED_RESULT;
386386

387387
/// Subscribes to the returned signal when an error occurs.
388-
- (RACSignal *)catch:(RACSignal * (^)(NSError * _Nonnull error))catchBlock RAC_WARN_UNUSED_RESULT;
388+
- (RACSignal *)catch:(RACSignal * (^)(NSError * _Nullable error))catchBlock RAC_WARN_UNUSED_RESULT;
389389

390390
/// Subscribes to the given signal when an error occurs.
391391
- (RACSignal *)catchTo:(RACSignal *)signal RAC_WARN_UNUSED_RESULT;

0 commit comments

Comments
 (0)