Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
eguzki committed Jun 5, 2024
1 parent 95739d8 commit 53ec46c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/filter/http_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,11 @@ impl HttpContext for Filter {
info!("on_http_request_headers #{}", self.context_id);

for header in TracingHeader::all() {
match self.get_http_request_header_bytes(header.as_str()) {
Some(value) => self.tracing_headers.push((header, value)),
None => (),
if let Some(value) = self.get_http_request_header_bytes(header.as_str()) {
self.tracing_headers.push((header, value))
}
}

match self
.config
.index
Expand Down

0 comments on commit 53ec46c

Please sign in to comment.