From b22a6472fcd9a33dbdf2051c49616099841ea826 Mon Sep 17 00:00:00 2001 From: henrygd Date: Tue, 28 Oct 2025 16:42:21 -0400 Subject: [PATCH] missed staging this earlier :) --- agent/smart.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/smart.go b/agent/smart.go index f8defd97..680abf3b 100644 --- a/agent/smart.go +++ b/agent/smart.go @@ -363,11 +363,11 @@ func (sm *SmartManager) parseScan(output []byte) ([]*DeviceInfo, bool) { if err := json.Unmarshal(output, scan); err != nil { slog.Debug("Failed to parse smartctl scan JSON", "err", err) - return false + return nil, false } if len(scan.Devices) == 0 { - return false + return nil, false } devices := make([]*DeviceInfo, 0, len(scan.Devices))