Skip to content

Commit b3eaae3

Browse files
committed
fix: keep linux form-factor evidence alive for CI build
1 parent 7919578 commit b3eaae3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src-tauri/src/platform/linux/scanner.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,9 +447,14 @@ pub async fn scan() -> Result<DetectedHardware, AppError> {
447447
let battery_present = !battery_lines.is_empty();
448448

449449
let gpu_name_str: String = gpus.iter().map(|g| g.name.as_str()).collect::<Vec<_>>().join(" / ");
450+
let chassis_types: Vec<u32> = if chassis_type > 0 {
451+
vec![chassis_type]
452+
} else {
453+
Vec::new()
454+
};
450455
let is_laptop = infer_laptop_form_factor(&FormFactorEvidence {
451456
cpu_name: &cpu_name,
452-
chassis_types: if chassis_type > 0 { &[chassis_type] } else { &[] },
457+
chassis_types: &chassis_types,
453458
model_name: &board_model_res,
454459
battery_present,
455460
manufacturer: &sys_vendor_res,

0 commit comments

Comments
 (0)