Skip to content

Commit

Permalink
Removed unnecessary if clause in override method
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsanchezq committed Aug 3, 2020
1 parent 796a816 commit a743315
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions vit-servicing-station-lib/src/server/settings/config.rs
Expand Up @@ -160,9 +160,7 @@ impl ServiceSettings {
return_settings.block0_path = other_settings.block0_path.clone();
}

if other_settings.log.log_level != return_settings.log.log_level {
return_settings.log.log_level = other_settings.log.log_level;
}
return_settings.log.log_level = other_settings.log.log_level;

if other_settings.log.log_output_path.is_some() {
return_settings.log.log_output_path = other_settings.log.log_output_path.clone();
Expand Down

0 comments on commit a743315

Please sign in to comment.