Skip to content

Commit

Permalink
chore: remove useless optionnal chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
neolectron committed Jul 28, 2023
1 parent 4a0c432 commit 6cb949d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/machines/bar.machine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const barMachine = hotspotMachine
.withConfig({
actions: {
updatePersons: (context) => {
context.persons.forEach((p) => p?.send('triggerDrink'));
context.persons.forEach((p) => p.send('triggerDrink'));
return context;
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/machines/toilet.machine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const toiletMachine = hotspotMachine
.withConfig({
actions: {
updatePersons: (context) => {
context.persons.forEach((p) => p?.send('triggerPee'));
context.persons.forEach((p) => p.send('triggerPee'));
return context;
},
},
Expand Down

0 comments on commit 6cb949d

Please sign in to comment.