Skip to content

Commit 372c9d0

Browse files
authored
Merge pull request ReactiveCocoa#30 from Lightricks/feature/nullable-errors
RACSignal+Operations: make -catch: and -doError: accept nil errors.
2 parents d5b1484 + e152bb1 commit 372c9d0

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)