From ca19500f73f12d1e22931c0db0f891febacfcaab Mon Sep 17 00:00:00 2001 From: Jacob Lehr Date: Sat, 16 May 2026 09:02:40 +1000 Subject: [PATCH] Fix for Useless assignment to local variable Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- internal/app/service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/app/service.go b/internal/app/service.go index 4e7f84e..4877acc 100644 --- a/internal/app/service.go +++ b/internal/app/service.go @@ -359,8 +359,8 @@ func analyzeLog(r io.Reader, source string, opts AnalyzeOptions, surface string, if a != nil { a.Source = source } - if prepErr := error(nil); a != nil || errors.Is(err, engine.ErrNoMatch) { - a, prepErr = prepareAnalysisWithStore(a, string(data), "log", surface, opts, persist) + if a != nil || errors.Is(err, engine.ErrNoMatch) { + a, prepErr := prepareAnalysisWithStore(a, string(data), "log", surface, opts, persist) if prepErr != nil { return nil, prepErr }