Skip to content

Commit e33b155

Browse files
committed
unnecessary let binding
1 parent 94102ab commit e33b155

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

rust/operator-binary/src/product_logging.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ fn log4j2_config_if_automatic(
137137
log_file: &str,
138138
max_log_file_size: MemoryQuantity,
139139
) -> Option<String> {
140-
let config = if let Some(ContainerLogConfig {
140+
if let Some(ContainerLogConfig {
141141
choice: Some(ContainerLogConfigChoice::Automatic(log_config)),
142142
}) = log_config.as_deref()
143143
{
@@ -153,6 +153,5 @@ fn log4j2_config_if_automatic(
153153
))
154154
} else {
155155
None
156-
};
157-
config
156+
}
158157
}

0 commit comments

Comments
 (0)