Skip to content
Snippets Groups Projects
Commit a78da60a authored by Craig Tiller's avatar Craig Tiller
Browse files

Add comment

parent 68bb6a84
No related branches found
No related tags found
No related merge requests found
...@@ -989,6 +989,8 @@ static grpc_error *consolidate_batch_errors(batch_control *bctl) { ...@@ -989,6 +989,8 @@ static grpc_error *consolidate_batch_errors(batch_control *bctl) {
if (n == 0) { if (n == 0) {
return GRPC_ERROR_NONE; return GRPC_ERROR_NONE;
} else if (n == 1) { } else if (n == 1) {
/* Skip creating a composite error in the case that only one error was
logged */
grpc_error *e = bctl->errors[0]; grpc_error *e = bctl->errors[0];
bctl->errors[0] = NULL; bctl->errors[0] = NULL;
return e; return e;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment