From 255c3f6260d7dda4e17a9b4fa1db3e3cac3f35fe Mon Sep 17 00:00:00 2001 From: Arnaud Dartois Date: Sun, 19 Jul 2026 15:30:51 +0000 Subject: [PATCH] fix: resolve CA1822 and CA1859 in FrameAnalyzerService --- src/Heimdall.Agent/Heimdall.Agent.csproj | 1 + src/Heimdall.Agent/Services/FrameAnalyzerService.cs | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Heimdall.Agent/Heimdall.Agent.csproj b/src/Heimdall.Agent/Heimdall.Agent.csproj index d802ca6..4ddef7c 100644 --- a/src/Heimdall.Agent/Heimdall.Agent.csproj +++ b/src/Heimdall.Agent/Heimdall.Agent.csproj @@ -16,5 +16,6 @@ + diff --git a/src/Heimdall.Agent/Services/FrameAnalyzerService.cs b/src/Heimdall.Agent/Services/FrameAnalyzerService.cs index 31955c6..e9a49dc 100644 --- a/src/Heimdall.Agent/Services/FrameAnalyzerService.cs +++ b/src/Heimdall.Agent/Services/FrameAnalyzerService.cs @@ -1,4 +1,3 @@ -using System.Collections.Concurrent; using System.Threading.Channels; using Microsoft.Extensions.Logging; @@ -139,7 +138,7 @@ public sealed class FrameAnalyzerService : IDisposable } } - private IReadOnlyList RunInference(byte[] jpegData) + private static DetectionResult[] RunInference(byte[] jpegData) { // For now, return simulated detections based on image content. // In production, this would: @@ -155,7 +154,7 @@ public sealed class FrameAnalyzerService : IDisposable // dotnet add package Microsoft.ML.OnnxRuntime // Placeholder: return simulated result - return Array.Empty(); + return []; } public void Dispose()