(RVV-B0005) Redundant error checking detected
johnsonjh opened this issue · comments
Jeffrey H. Johnson commented
Description
if err { return err } else { return nil }
can be simplified to return err
. For example, go if err := function(); err != nil { return err } else { return nil }
can be re-written as: go return function()
Occurrences
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/johnsonjh/gfsmux/issue/RVV-B0005/occurrences/
repo-ranger commented