Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export function getSkipPoint(drawRegions: readonly Rectangle[]): number | undefi
for (const dr of drawRegions) {
drawRegionsLowestY = Math.min(drawRegionsLowestY ?? dr.y, dr.y);
}
return drawRegionsLowestY;
Copy link
Preview

Copilot AI Aug 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function returns drawRegionsLowestY which is initialized as undefined and will remain undefined if the drawRegions array is empty. Consider returning a default value or handling the empty array case explicitly to match the function's return type contract.

Copilot uses AI. Check for mistakes.

}

export type WalkRowsCallback = (
Expand Down