Skip to content

Commit aeee582

Browse files
fix: move err check to right after call
1 parent 8d325e2 commit aeee582

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

agent/agentscripts/agentscripts.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,6 @@ func (r *Runner) run(ctx context.Context, script codersdk.WorkspaceAgentScript,
352352
TimedOut: errors.Is(err, ErrTimeout),
353353
},
354354
})
355-
356355
if err != nil {
357356
logger.Error(ctx, fmt.Sprintf("reporting script completed: %s", err.Error()))
358357
}

0 commit comments

Comments
 (0)