Skip to content

Replace panic-based partition bounds checks #85

Description

@Vladyslav-Kuksiuk

The fragmentation.Partition.Select still calls safeAccess, which probes a slice and recovers from panic to check whether an index exists. Replace it with direct index >= 0 && index < len(lines) checks while preserving the current error messages.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions