api: remove redundant guard

Fixes the redundant_guards clippy lint.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
Maximiliano Sandoval 2025-03-06 14:12:30 +01:00 committed by Wolfgang Bumiller
parent 858744bf3c
commit 883e14ebcb

View File

@ -150,7 +150,7 @@ pub async fn datastore_status(
if usage_list.len() >= 7 {
entry.estimated_full_date = match linear_regression(&time_list, &usage_list) {
Some((a, b)) if b != 0.0 => Some(((1.0 - a) / b).floor() as i64),
Some((_, b)) if b == 0.0 => Some(0), // infinite estimate, set to past for gui to detect
Some((_, 0.0)) => Some(0), // infinite estimate, set to past for gui to detect
_ => None,
};
}