Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ceriottm committed Dec 10, 2023
1 parent 340cf6c commit d11efa6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/structure/viewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1101,10 +1101,9 @@ export class MoleculeViewer {
assert(!(structure.shapes === undefined));

const active_shapes = this._options.shape.value.split(',');
const startTime = Date.now();

// consolidates all shapes in a single CustomShapeSpec
var all_shapes: $3Dmol.CustomShapeSpec = {
const all_shapes: $3Dmol.CustomShapeSpec = {
vertexArr: [],
normalArr: [],
faceArr: [],
Expand Down Expand Up @@ -1253,7 +1252,7 @@ export class MoleculeViewer {
}
}
}
const doneTime = Date.now();

if (Array.isArray(all_shapes.faceArr) && all_shapes.faceArr.length > 0) {
// adds all shapes that have been accumulated
this._viewer.addCustom(all_shapes);
Expand Down

0 comments on commit d11efa6

Please sign in to comment.