Skip to content

Commit

Permalink
@catch (NSError *error) now generates an error "Symbol not found: _…
Browse files Browse the repository at this point in the history
…OBJC_CLASS_$_NSError". This `try/catch` block here is useless, just passing error further [Xcode 15].
  • Loading branch information
maratal committed Sep 15, 2023
1 parent 64967fe commit 62fb233
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions Source/ARTRealtimePresence.m
Original file line number Diff line number Diff line change
Expand Up @@ -234,15 +234,7 @@ - (void)history:(ARTPaginatedPresenceCallback)callback {

- (BOOL)history:(ARTRealtimeHistoryQuery *)query callback:(ARTPaginatedPresenceCallback)callback error:(NSError **)errorPtr {
query.realtimeChannel = _channel;
@try {
return [_channel.restChannel.presence history:query callback:callback error:errorPtr];
}
@catch (NSError *error) {
if (errorPtr) {
*errorPtr = error;
}
return false;
}
return [_channel.restChannel.presence history:query callback:callback error:errorPtr];
}

- (void)enter:(id)data {
Expand Down

0 comments on commit 62fb233

Please sign in to comment.