streadway / amqp

Go client for AMQP 0.9.1
http://godoc.org/github.com/streadway/amqp
BSD 2-Clause "Simplified" License
4.88k stars 621 forks source link

Coverity Scan - Identical code for different branches #531

Open raghvendra-dixit opened 2 years ago

raghvendra-dixit commented 2 years ago

File: https://github.com/streadway/amqp/blob/master/read.go Details:

  1. The condition is redundant In github.​com/streadway/amqp.​readFloat32(io.​Reader): The same code is executed regardless of the condition (CWE-398)
  2. The condition is redundant In github.​com/streadway/amqp.​readFloat64(io.​Reader): The same code is executed regardless of the condition (CWE-398) Screenshots:
  3. image
  4. image