We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b8891c commit 062a493Copy full SHA for 062a493
step/run.go
@@ -38,14 +38,15 @@ func Run[T any](
38
) (T, error) {
39
targetID := getTargetStepID(ctx)
40
mgr := preflight(ctx, enums.OpcodeStepRun)
41
- op := mgr.NewOp(enums.OpcodeStepRun, id)
42
- hashedID := op.MustHash()
43
44
if mgr == nil {
45
// If there's no manager, execute the function directly.
46
return f(ctx)
47
}
48
+ op := mgr.NewOp(enums.OpcodeStepRun, id)
+ hashedID := op.MustHash()
49
+
50
if val, ok := mgr.Step(ctx, op); ok {
51
return loadExistingStep(id, mgr, val, f)
52
0 commit comments