bneradt commented on code in PR #12544:
URL: https://github.com/apache/trafficserver/pull/12544#discussion_r2408898977


##########
plugins/compress/configuration.cc:
##########
@@ -152,9 +152,7 @@ HostConfiguration::is_url_allowed(const char *url, int 
url_len)
 bool
 HostConfiguration::is_status_code_compressible(const TSHttpStatus status_code) 
const
 {
-  std::set<TSHttpStatus>::const_iterator it = 
compressible_status_codes_.find(status_code);
-
-  return it != compressible_status_codes_.end();
+  return compressible_status_codes_.contains(status_code);
 }

Review Comment:
   nice :) 



-- 
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