Skip to content

Commit 157af1b

Browse files
author
Tamás Lustyik
committed
Fixed error nullability (error signals can still be constructed with nil)
1 parent 93b1cd7 commit 157af1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ReactiveObjC/RACSignal+Operations.h

+2-2
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 *)doError:(void (^)(NSError * _Nonnull error))block RAC_WARN_UNUSED_RESULT;
44+
- (RACSignal *)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.
@@ -381,7 +381,7 @@ extern const NSInteger RACSignalErrorNoMatchingCase;
381381
- (RACSignal *)takeUntilReplacement:(RACSignal *)replacement RAC_WARN_UNUSED_RESULT;
382382

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

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

0 commit comments

Comments
 (0)