Skip to content

Commit 1b567b0

Browse files
committed
chore: clean comment
1 parent 0a32d9f commit 1b567b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/commands/run.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,9 @@ func (c *runCommand) execute(_ *cobra.Command, args []string) {
238238
needTrackResources := logutils.IsVerbose() || c.opts.PrintResourcesUsage
239239

240240
trackResourcesEndCh := make(chan struct{})
241-
defer func() { // XXX: this defer must be before ctx.cancel defer
241+
242+
// Note: this defer must be before ctx.cancel defer
243+
defer func() {
242244
if needTrackResources { // wait until resource tracking finished to print properly
243245
<-trackResourcesEndCh
244246
}

0 commit comments

Comments
 (0)