Skip to content

Commit

Permalink
Merge branch 'fix-bug-duplicated-code' of https://github.com/0xbot-st…
Browse files Browse the repository at this point in the history
…udio/eliza into 0xbot-studio-fix-bug-duplicated-code
  • Loading branch information
shakkernerd committed Dec 25, 2024
2 parents d928b8e + 3550af7 commit 9073ee5
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/plugin-bootstrap/src/evaluators/goal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,6 @@ async function handler(
state: State | undefined,
options: { [key: string]: unknown } = { onlyInProgress: true }
): Promise<Goal[]> {
// get goals
let goalsData = await getGoals({
runtime,
roomId: message.roomId,
onlyInProgress: options.onlyInProgress as boolean,
});

state = (await runtime.composeState(message)) as State;
const context = composeContext({
Expand All @@ -79,10 +73,10 @@ async function handler(
const updates = parseJsonArrayFromText(response);

// get goals
goalsData = await getGoals({
const goalsData = await getGoals({
runtime,
roomId: message.roomId,
onlyInProgress: true,
onlyInProgress: options.onlyInProgress as boolean,
});

// Apply the updates to the goals
Expand Down

0 comments on commit 9073ee5

Please sign in to comment.