Skip to content

Commit

Permalink
chore: remove getCellFromPoint() unreachable code (#974)
Browse files Browse the repository at this point in the history
- since we always assign `cell = 0` at the start, the `cell < -1` is technically unreachable, so there's no need to keep it
  • Loading branch information
ghiscoding authored Jan 16, 2024
1 parent bef663c commit 2a33ae7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/slick.grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5564,9 +5564,6 @@ export class SlickGrid<TData = any, C extends Column<TData> = Column<TData>, O e
if (row < -1) {
row = -1;
}
if (cell < -1) {
cell = -1;
}

return { row, cell };
}
Expand Down

0 comments on commit 2a33ae7

Please sign in to comment.