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,14 +66,11 @@ 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) => {
if let Err(e) = renice(child.id(), process.niceness.unwrap_or(0)) {
error!("Failed to renice ffmpeg process: {}", e);
}
}
}
}
if let Err(e) = child.wait() {
fail(&job, &format!("Failed to wait for ffmpeg process: {}", e));