Skip debug projections when capture is disabled
This commit is contained in:
@@ -26,6 +26,10 @@ func (r *Runner) runChunkPlan(ctx context.Context, input RunInput, doc *source.S
|
||||
origin := contracts.DiagnosticOrigin{Stage: contracts.DiagnosticOriginStageChunk, ModuleKey: chunker.Key()}
|
||||
execution := operationExecution(input, origin, nil)
|
||||
defer func() {
|
||||
// Project final chunks here only when an operation capture was requested.
|
||||
if execution.Capture == nil {
|
||||
return
|
||||
}
|
||||
errorText := ""
|
||||
if err != nil {
|
||||
errorText = err.Error()
|
||||
|
||||
Reference in New Issue
Block a user