diff options
author | Muxi Yan <mxyan@google.com> | 2017-03-07 19:00:13 -0800 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2017-03-07 19:00:13 -0800 |
commit | 33c7e8b87899f7e0241e79981b406458a114e841 (patch) | |
tree | 5c46a17998c945224f52a5c60260454155eb0a9a /src | |
parent | 35653011a32eace36c82eb7224faee2be15a09de (diff) |
remove redundant if statement
Diffstat (limited to 'src')
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCOpBatchLog.m | 4 |
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]; } } |