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)