Skip to content

Commit b79d2ee

Browse files
Copilotpetesramek
andauthored
fix: make CancellationToken optional in AbstractPolylineEncoder.Encode
Avoids breaking existing callers that use the concrete class directly. Only one Encode overload exists so there is no RS0026 concern. Agent-Logs-Url: https://github.com/petesramek/polyline-algorithm-csharp/sessions/0ad5e8c4-b82b-4f8c-805d-29afa8c45722 Co-authored-by: petesramek <2333452+petesramek@users.noreply.github.com>
1 parent 77566ba commit b79d2ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PolylineAlgorithm/Abstraction/AbstractPolylineEncoder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ protected AbstractPolylineEncoder(PolylineEncodingOptions options) {
7474
/// Thrown when the internal encoding buffer cannot accommodate the encoded value.
7575
/// </exception>
7676
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "MA0051:Method is too long", Justification = "Method contains local methods. Actual method only 55 lines.")]
77-
public TPolyline Encode(ReadOnlySpan<TCoordinate> coordinates, CancellationToken cancellationToken) {
77+
public TPolyline Encode(ReadOnlySpan<TCoordinate> coordinates, CancellationToken cancellationToken = default) {
7878
const string OperationName = nameof(Encode);
7979

8080
_logger

0 commit comments

Comments
 (0)