fix: 修复 DeliveryZoneService 可空警告

This commit is contained in:
root
2026-01-29 03:07:25 +00:00
parent c5e2501e1a
commit 06981838a6

View File

@@ -167,7 +167,7 @@ public sealed class DeliveryZoneService : IDeliveryZoneService
private static bool TryReadPolygonFromCoordinates(JsonElement coordinatesElement, out Polygon polygon)
{
polygon = default;
polygon = default!;
if (!TryReadRings(coordinatesElement, out var rings) || rings.Count == 0)
{
return false;