Skip to content

Commit b7470f3

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -486,12 +486,12 @@ namespace MakerJs.measure {
486486

487487
/**
488488
* Measures the smallest rectangle which contains a model.
489-
*
489+
*
490490
* @param modelToMeasure The model to 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)