Skip to content

Commit

Permalink
docs: added todo
Browse files Browse the repository at this point in the history
  • Loading branch information
zhihil committed Jun 14, 2024
1 parent 0bb0145 commit 16dab24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/services/runtime/handlers/message/lib/selectVariant.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// !TODO! - How to get rid of this
/* eslint-disable no-await-in-loop */
/* eslint-disable no-restricted-syntax */
import { CompiledResponseMessage } from '@voiceflow/dtos';
Expand Down Expand Up @@ -29,7 +30,6 @@ export async function selectVariant(variants: VariantConditionPair[]): Promise<C
}
});

// !TODO! - Can this be optimized by only evaluating one variant a time?
for (const pair of conditionedVariants) {
const isMatching = await evaluateConditions(pair);

Expand Down

0 comments on commit 16dab24

Please sign in to comment.