Skip to content

Commit

Permalink
include return value
Browse files Browse the repository at this point in the history
  • Loading branch information
bmschmidt committed Sep 20, 2024
1 parent 2aa6b41 commit c96085d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/aesthetics/Aesthetic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export abstract class Aesthetic<
for (let i = 0; i < this.subfield.length; i++) {
v = v[this.subfield[i]] as Input['domainType'];
}
}
return v;
// Needs a default perhaps?
return null;
}
Expand Down
4 changes: 2 additions & 2 deletions src/selection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -824,8 +824,8 @@ export class DataSelection {
if (i === undefined) {
i = this.cursor;
}
if (i > this.selectionSize) {
undefined;
if (i >= this.selectionSize) {
throw new Error('Index out of bounds');
}
let currentOffset = 0;
let relevantTile: Tile | undefined = undefined;
Expand Down

0 comments on commit c96085d

Please sign in to comment.