masaori335 commented on code in PR #10923:
URL: https://github.com/apache/trafficserver/pull/10923#discussion_r1422431085


##########
src/iocore/cache/Cache.cc:
##########
@@ -576,8 +576,6 @@ CacheProcessor::diskInitialized()
 void
 CacheProcessor::cacheInitialized()
 {
-  int i;
-
   if (theCache && (theCache->ready == CACHE_INITIALIZING)) {

Review Comment:
   Can we make this function just return when `theCache` is `nullptr`? It's 
checked many times in this function, but `theCache` is a singleton object and 
we can do nothing when it's `nullptr`, I think.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to