Skip to content

Commit

Permalink
include return value
Browse files Browse the repository at this point in the history
  • Loading branch information
bmschmidt committed Oct 1, 2024
1 parent 7019285 commit a3d1a8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/aesthetics/Aesthetic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,10 @@ 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;
}
// Needs a default perhaps?
return null;
}

get map_position() {
Expand Down
4 changes: 2 additions & 2 deletions src/selection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -817,8 +817,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 a3d1a8a

Please sign in to comment.