Skip to content

Commit fcc8bb9

Browse files
committed
chore: remove redundant code
1 parent 1d9d594 commit fcc8bb9

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

packages/backend/src/helpers/compute-for-each-parameters.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,6 @@ export function computeForEachParameters({
9393
let forEachKeyPath = get(data, keyPath)
9494
const currentStepIndex = stepPositions?.[executionStep?.stepId] || -1
9595

96-
if (testRun) {
97-
forEachKeyPath = String(forEachKeyPath).replace(FOR_EACH_ITERATION_KEY, '0')
98-
} else if (metadata?.iteration) {
99-
forEachKeyPath = String(forEachKeyPath).replace(
100-
FOR_EACH_ITERATION_KEY,
101-
`${metadata.iteration - 1}`,
102-
)
103-
}
104-
10596
if (testRun || metadata?.iteration) {
10697
forEachKeyPath = String(forEachKeyPath).replace(
10798
FOR_EACH_ITERATION_KEY,

0 commit comments

Comments
 (0)