Skip to content

Commit

Permalink
[ISSUE #1002]🐛Fix clippy check error on ConfigManager #1002
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsm committed Sep 26, 2024
1 parent 306fafe commit 6b2b424
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rocketmq-common/src/common/config_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub trait ConfigManager {
/// * `false` if the configuration loading fails.
fn load_bak(&self) -> bool {
let file_name = self.config_file_path();
return if let Ok(ref content) =
if let Ok(ref content) =

Check warning on line 67 in rocketmq-common/src/common/config_manager.rs

View check run for this annotation

Codecov / codecov/patch

rocketmq-common/src/common/config_manager.rs#L67

Added line #L67 was not covered by tests
FileUtils::file_to_string(format!("{}{}", file_name, ".bak").as_str())
{
if !content.is_empty() {
Expand All @@ -75,7 +75,7 @@ pub trait ConfigManager {
} else {
error!("load Config file: {}.bak -----Failed", file_name);
false
};
}
}

/// Persists the configuration with a topic.
Expand Down

0 comments on commit 6b2b424

Please sign in to comment.