Skip to content

Commit

Permalink
style: simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Dec 15, 2023
1 parent 37df0dc commit 4de93b9
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions lib/simulator/Simulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,14 @@ export default function Simulator(injector, eventBus, elementRegistry) {
const {
element,
parentScope,
initiator = null
initiator = null,
scope = initializeScope({
element,
parent: parentScope,
initiator
})
} = context;

const scope = context.scope || initializeScope({
element,
parent: parentScope,
initiator
});

queue(scope, function() {

if (!scope.running) {
Expand Down

0 comments on commit 4de93b9

Please sign in to comment.