Skip to content

Commit

Permalink
Fix code scan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
okynos committed Oct 12, 2024
1 parent 4c41265 commit 1bbfa96
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions src/appconfig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@ impl AppConfig {

// Manage value on events->watcher value
let events_watcher = match yaml[0]["events"]["watcher"].as_str() {
Some(value) => match value {
"poll"|"P"|"POLL"|"Poll" => String::from("Poll"),
_ => String::from("Recommended")
},
Some("poll"|"P"|"POLL"|"Poll") => String::from("Poll"),
_ => String::from("Recommended")
};

Expand Down
1 change: 0 additions & 1 deletion src/rotator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ fn rotate_file(filepath: &str, iteration: u32, lock: Mutex<bool>){

// ----------------------------------------------------------------------------

#[cfg(not(tarpaulin_include))]
pub fn rotator(cfg: AppConfig){
loop{
let log_size = if Path::new(cfg.clone().log_file.as_str()).exists() {
Expand Down

0 comments on commit 1bbfa96

Please sign in to comment.