Skip to content

Commit b6c693c

Browse files
kalwaltCopilot
andauthored
Return statement in finally block will override any thrown exceptions from the catch block, preventing proper error propagation. Remove the return statement from the finally block
Co-authored-by: Copilot <[email protected]>
1 parent 67e81ad commit b6c693c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/worker/worker.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ async function initArtoolkit(width = 640, height = 480) {
192192
throw err;
193193
} finally {
194194
initInProgress = null;
195-
return arControllerInitialized;
196195
}
197196
})();
198197

0 commit comments

Comments
 (0)