fix: clean code some more

This commit is contained in:
Didier Slof 2023-05-08 14:11:35 +02:00
parent 17cca457b9
commit 52629de98d
Signed by: didier
GPG key ID: 01E71F18AA4398E5

View file

@ -66,11 +66,8 @@ fn main() {
};
if let Some(process) = &config.ffmpeg.process {
if (process.niceness.unwrap_or(0)) > 0 {
match renice(child.id(), process.niceness.unwrap_or(0)) {
Ok(_) => {}
Err(e) => {
error!("Failed to renice ffmpeg process: {}", e);
}
if let Err(e) = renice(child.id(), process.niceness.unwrap_or(0)) {
error!("Failed to renice ffmpeg process: {}", e);
}
}
}