remove another redundant if statement

pull/9247/head
Muxi Yan 8 years ago
parent 33c7e8b878
commit 8ce2664497
  1. 4
      src/objective-c/GRPCClient/private/GRPCOpBatchLog.m

@ -59,13 +59,9 @@ NSMutableArray *opBatchLog = nil;
+ (NSArray *)obtainAndCleanOpBatchLog {
@synchronized (opBatchLog) {
if (opBatchLog) {
NSArray *out = opBatchLog;
opBatchLog = [NSMutableArray array];
return out;
} else {
return nil;
}
}
}

Loading…
Cancel
Save