Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
vanruesc committed Aug 10, 2023
1 parent 8995e15 commit fd4fd65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/OctreeIterator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class OctreeIterator<T> implements Iterator<OctantWrapper<T>>, Iterable<O
const internalResult = this.iterator.next();
const value = internalResult.value as [number, Octant<T>];

if(internalResult.done === undefined || !internalResult.done) {
if(internalResult.done !== true) {

const octantWrapper = new OctantWrapper<T>();
this.octree.keyDesign.unpackKey(value[0], octantWrapper.min);
Expand Down

0 comments on commit fd4fd65

Please sign in to comment.