Skip to content

Commit

Permalink
Remove duplicate check
Browse files Browse the repository at this point in the history
  • Loading branch information
FObermaier committed Aug 13, 2024
2 parents e150f8d + 556e70c commit ba0fe2f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,11 @@ private static void EncodeTo(List<uint> destination, CoordinateSequence sequence
if (count == 0)
return;

// In case we decide to ditch encoded data, we must reset currentX and currentY
// or subsequent geometry items will not be positioned correctly.
int initialCurrentX = currentX;

Check failure on line 354 in src/NetTopologySuite.IO.VectorTiles.Mapbox/MapboxTileWriter.cs

View workflow job for this annotation

GitHub Actions / ubuntu-latest

A local variable or function named 'initialCurrentX' is already defined in this scope

Check failure on line 354 in src/NetTopologySuite.IO.VectorTiles.Mapbox/MapboxTileWriter.cs

View workflow job for this annotation

GitHub Actions / ubuntu-latest

A local variable or function named 'initialCurrentX' is already defined in this scope
int initialCurrentY = currentY;

Check failure on line 355 in src/NetTopologySuite.IO.VectorTiles.Mapbox/MapboxTileWriter.cs

View workflow job for this annotation

GitHub Actions / ubuntu-latest

A local variable or function named 'initialCurrentY' is already defined in this scope

Check failure on line 355 in src/NetTopologySuite.IO.VectorTiles.Mapbox/MapboxTileWriter.cs

View workflow job for this annotation

GitHub Actions / ubuntu-latest

A local variable or function named 'initialCurrentY' is already defined in this scope

// if we have a ring we need to check orientation
if (ring)
{
Expand Down

0 comments on commit ba0fe2f

Please sign in to comment.