From 3849c341b85bc829fc005294ed7e22a38051ad24 Mon Sep 17 00:00:00 2001
From: JonStargaryen <sebastian.bittrich@rcsb.org>
Date: Wed, 26 May 2021 09:30:06 -0700
Subject: [PATCH] no optional chaining

---
 src/extensions/anvil/algorithm.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/extensions/anvil/algorithm.ts b/src/extensions/anvil/algorithm.ts
index 453c6cd71..cb16c73ee 100644
--- a/src/extensions/anvil/algorithm.ts
+++ b/src/extensions/anvil/algorithm.ts
@@ -225,7 +225,7 @@ async function findMembrane(runtime: RuntimeContext, message: string | undefined
     const diam = v3zero();
     const testPoint = v3zero();
     for (let n = 0, nl = spherePoints.length; n < nl; n++) {
-        if (runtime?.shouldUpdate && message && (n + 1) % UPDATE_INTERVAL === 0) {
+        if (runtime.shouldUpdate && message && (n + 1) % UPDATE_INTERVAL === 0) {
             await runtime.update({ message, current: (n + 1), max: nl });
         }
 
@@ -306,7 +306,7 @@ async function adjustThickness(runtime: RuntimeContext, message: string | undefi
     const nl = Math.ceil((maxThickness - minThickness) / step);
     while (maxThickness > minThickness) {
         n++;
-        if (runtime?.shouldUpdate && message && n % UPDATE_INTERVAL === 0) {
+        if (runtime.shouldUpdate && message && n % UPDATE_INTERVAL === 0) {
             await runtime.update({ message, current: n, max: nl });
         }
 
-- 
GitLab