Skip to content

Commit

Permalink
Rid warning to allow pod lib lit to pass.
Browse files Browse the repository at this point in the history
It was complaining with:
WARN  | xcodebuild:  /.../ably-cocoa/Source/ARTRealtimePresence.m:190:222: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
  • Loading branch information
Quintin Willison committed May 4, 2020
1 parent 99f2719 commit f904e15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ARTRealtimePresence.m
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ - (void)get:(ARTRealtimePresenceQuery *)query callback:(void (^)(NSArray<ARTPres
switch (self->_channel.state_nosync) {
case ARTRealtimeChannelDetached:
case ARTRealtimeChannelFailed:
if (callback) callback(nil, [ARTErrorInfo createWithCode:90001 message:[NSString stringWithFormat:@"unable to return the list of current members (incompatible channel state: %@)", ARTRealtimeChannelStateToStr(_channel.state_nosync)]]);
if (callback) callback(nil, [ARTErrorInfo createWithCode:90001 message:[NSString stringWithFormat:@"unable to return the list of current members (incompatible channel state: %@)", ARTRealtimeChannelStateToStr(self->_channel.state_nosync)]]);
return;
case ARTRealtimeChannelSuspended:
if (query && !query.waitForSync) {
Expand Down

0 comments on commit f904e15

Please sign in to comment.