Skip to content

Commit

Permalink
cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
customcommander committed Oct 9, 2024
1 parent a56a566 commit 4a178ef
Showing 1 changed file with 26 additions and 34 deletions.
60 changes: 26 additions & 34 deletions src/lib-task.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,27 +59,21 @@ export default function (definitions) {
}
},

replenish: (
typeof replenish == 'function' ?
{
entry: {
type: 'game-update',
params: {
fn: replenish,
reply_to: id
}
},
on: {
'game.updated': {
target: 'idle',
actions: 'task-ack'
}
replenish: {
entry: {
type: 'game-update',
params: {
fn: replenish,
reply_to: id
}
},
on: {
'game.updated': {
target: 'idle',
actions: 'task-ack'
}
}

: null

),
},

selection: {
entry: {
Expand All @@ -105,23 +99,21 @@ export default function (definitions) {
}
},

execute: (
{
entry: {
type: 'game-update',
params: {
fn: execute,
reply_to: id
}
},
on: {
'game.updated': {
target: 'idle',
actions: 'task-complete'
}
execute: {
entry: {
type: 'game-update',
params: {
fn: execute,
reply_to: id
}
},
on: {
'game.updated': {
target: 'idle',
actions: 'task-complete'
}
}
)
}
}
};

Expand Down

0 comments on commit 4a178ef

Please sign in to comment.