Reports conditions in code that always evaluate to true or false.

Example:


func _(file *os.File) {
    if file == nil {
        return
    }
    if file == nil {
    }
}
  

In the given example, the second condition if file == nil is redundant. It will always evaluate to false as it repeats a check already performed in the code.