Skip to content

Commit

Permalink
fix(SLICSource): ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Jan 5, 2018
1 parent f3ca24a commit b234ce5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/Filters/Sources/SLICSource/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ function vtkSLICSource(publicAPI, model) {

// Fill clusterIdxValues
const nbBytes =
model.clusters.length < 256 ? 8 : model.clusters.length < 65536 ? 16 : 32;
(model.clusters.length < 256 ? 8 : 0) ||
(model.clusters.length < 65536 ? 16 : 32);
const clusterIdxValues = new window[`Uint${nbBytes}Array`](dataSize);
for (let i = 0; i < dataSize; i++) {
let clusterDistance = Number.MAX_VALUE;
Expand Down

0 comments on commit b234ce5

Please sign in to comment.