Skip to content

Commit 213bdb9

Browse files
committed
Fix gosec G118
closeDrains() iterates over drain holders and calls drainHolder.cancel()
1 parent d64955d commit 213bdb9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pkg/binding/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ type drainHolder struct {
306306
}
307307

308308
func newDrainHolder() drainHolder {
309-
ctx, cancel := context.WithCancel(context.Background())
309+
ctx, cancel := context.WithCancel(context.Background()) //nolint:gosec
310310
return drainHolder{
311311
ctx: ctx,
312312
cancel: cancel,

0 commit comments

Comments
 (0)