fix: resolve CA1822 and CA1859 in FrameAnalyzerService
This commit is contained in:
1 parent
488996a760
commit
255c3f6260
2 files changed
+3
-3
No files matched your search
@@ -16,5 +16,6 @@
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="10.0.8" />
|
||||
<PackageReference Include="Sentry.AspNetCore" Version="6.7.0" />
|
||||
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -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<DetectionResult> 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<DetectionResult>();
|
||||
return [];
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
||||
Reference in new issue
Block a user