исправлены ворнинги

This commit is contained in:
2026-03-30 11:02:33 +03:00
parent 1df6a581e2
commit 61675e6baa
4 changed files with 1 additions and 4 deletions

View File

@@ -65,7 +65,7 @@ public sealed class MinintDocument
public int FindColorCached(RgbaColor color)
{
var cache = EnsurePaletteCache();
return cache.TryGetValue(color, out int idx) ? idx : -1;
return cache.GetValueOrDefault(color, -1);
}
/// <summary>

View File

@@ -1,4 +1,3 @@
using System;
using Minint.Core.Models;
namespace Minint.Core.Services.Impl;