From 1453dac5aa842beb42f6ba25114f9a6259f55590 Mon Sep 17 00:00:00 2001 From: Diana Devasia Date: Tue, 12 Mar 2024 10:15:19 -0400 Subject: [PATCH] commenting nosec before using it. This resolved it linter issue on the local. --- toxics/toxic.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/toxics/toxic.go b/toxics/toxic.go index 36fc660b..9f90b7bd 100644 --- a/toxics/toxic.go +++ b/toxics/toxic.go @@ -81,7 +81,8 @@ func NewToxicStub(input <-chan *stream.StreamChunk, output chan<- *stream.Stream func (s *ToxicStub) Run(toxic *ToxicWrapper) { s.running = make(chan struct{}) defer close(s.running) - if rand.Float32() < toxic.Toxicity { // #nosec G404 -- was ignored before too + // #nosec G404 -- was ignored before too + if rand.Float32() < toxic.Toxicity { toxic.Pipe(s) } else { new(NoopToxic).Pipe(s)