Skip to content

Commit d944aad

Browse files
committed
Explicitly return null and update return type
1 parent 5304707 commit d944aad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/maker.js/src/core/measure.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ namespace MakerJs.measure {
491491
* @param atlas Optional atlas to save measurements.
492492
* @returns object with low and high points.
493493
*/
494-
export function modelExtents(modelToMeasure: IModel, atlas?: Atlas): IMeasureWithCenter {
494+
export function modelExtents(modelToMeasure: IModel, atlas?: Atlas): IMeasureWithCenter | null {
495495

496496
function increaseParentModel(childRoute: string[], childMeasurement: IMeasure) {
497497

@@ -537,7 +537,7 @@ namespace MakerJs.measure {
537537
return augment(m);
538538
}
539539

540-
return m;
540+
return null;
541541
}
542542

543543

0 commit comments

Comments
 (0)