aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2017-03-07 19:00:13 -0800
committerGravatar Muxi Yan <mxyan@google.com>2017-03-07 19:00:13 -0800
commit33c7e8b87899f7e0241e79981b406458a114e841 (patch)
tree5c46a17998c945224f52a5c60260454155eb0a9a /src/objective-c
parent35653011a32eace36c82eb7224faee2be15a09de (diff)
remove redundant if statement
Diffstat (limited to 'src/objective-c')
-rw-r--r--src/objective-c/GRPCClient/private/GRPCOpBatchLog.m4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCOpBatchLog.m b/src/objective-c/GRPCClient/private/GRPCOpBatchLog.m
index e5e7100ddf..4699b8e6b3 100644
--- a/src/objective-c/GRPCClient/private/GRPCOpBatchLog.m
+++ b/src/objective-c/GRPCClient/private/GRPCOpBatchLog.m
@@ -53,9 +53,7 @@ NSMutableArray *opBatchLog = nil;
+ (void)addOpBatchToLog:(NSArray *)batch {
@synchronized (opBatchLog) {
- if (opBatchLog) {
- [opBatchLog addObject:batch];
- }
+ [opBatchLog addObject:batch];
}
}