Skip to content

Commit 8ac4d2e

Browse files
authored
prettify
Signed-off-by: Reece Dunham <me@rdil.rocks>
1 parent fb4ccf3 commit 8ac4d2e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/handleEvent.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export function handleEvent<Context = unknown, Event = unknown>(
200200

201201
// When transitioning, we have to reset all timers.
202202
// Since this is pass-by-reference, we have to modify the existing array!
203-
if(options.timers) {
203+
if (options.timers) {
204204
options.timers.length = 0
205205
}
206206

@@ -242,7 +242,7 @@ export function handleEvent<Context = unknown, Event = unknown>(
242242
}
243243
}
244244

245-
return undefined;
245+
return undefined
246246
}
247247

248248
let eventHandlers = csObject[eventName]
@@ -266,13 +266,13 @@ export function handleEvent<Context = unknown, Event = unknown>(
266266

267267
// Timers are a special snowflake, if they cause a state transition we have to continue processing normal events.
268268
// Since the handlers don't know what they are processing and to prevent constantly checking for timers, we just run them separately.
269-
doEventHandlers(timerEventHandlers);
269+
doEventHandlers(timerEventHandlers)
270270
}
271271

272272
const result = doEventHandlers(eventHandlers)
273273

274-
if(result) {
275-
return result;
274+
if (result) {
275+
return result
276276
}
277277

278278
return {

0 commit comments

Comments
 (0)