Skip to content

Commit

Permalink
Minor changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Smoren committed Apr 30, 2024
1 parent 239486c commit f1d35ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ class ClusterMap implements ClusterMapInterface {
}

public getCluster(clusterCoords: NumericVector): ClusterInterface {
let result: Array<unknown> = this.map;

if (clusterCoords.length === 2) {
const map = this.map as Cluster[][];
if (
Expand All @@ -124,6 +122,8 @@ class ClusterMap implements ClusterMapInterface {
}
}

let result: Array<unknown> = this.map;

for (let i=0; i<clusterCoords.length-1; ++i) {
const coord = clusterCoords[i];
if (!result.hasOwnProperty(coord)) {
Expand Down

0 comments on commit f1d35ae

Please sign in to comment.