fix: 修复 DeliveryZoneService 可空警告

This commit is contained in:
2026-01-29 02:42:47 +00:00
parent 467d221022
commit 57abfcf07a

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;