refactor: general code tidy-up

This commit is contained in:
Jake Stanger
2022-12-11 23:09:19 +00:00
parent 5e21cbcca6
commit ea2c84d1bd
4 changed files with 15 additions and 18 deletions

View File

@@ -121,7 +121,6 @@ fn create_bars(
.ok_or_else(|| Report::msg(error::ERR_OUTPUTS))?;
let monitor_name = &output.name;
// TODO: Could we use an Arc<Config> or `Cow<Config>` here to avoid cloning?
config.monitors.as_ref().map_or_else(
|| {
info!("Creating bar on '{}'", monitor_name);