Skip to content

Commit

Permalink
Added a TODO about possibly unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard-bagdasaryan committed Jul 22, 2019
1 parent 854c634 commit 53a8826
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client_side.cc
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,9 @@ ClientHttpRequest::logRequest()
al->http.code = al->reply->sline.status();
al->http.content_type = al->reply->content_type.termedBuf();
} else if (loggingEntry() && loggingEntry()->mem_obj) {
// possibly unreachable code, since al->reply is always
// initialized before loggingEntry and TODO: if al->reply
// is nil, loggingEntry is nil either.`

This comment has been minimized.

Copy link
@yadij

yadij Jul 22, 2019

Contributor

either?

... and addition of shell execute-begin character into the squid code.

al->http.code = loggingEntry()->mem_obj->getReply()->sline.status();
al->http.content_type = loggingEntry()->mem_obj->getReply()->content_type.termedBuf();
}
Expand Down

0 comments on commit 53a8826

Please sign in to comment.