johnsonjh / gfsmux

gfsmux: Efficient stream multiplexing for Go

Home Page:https://github.com/johnsonjh/gfsmux/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

(RVV-B0005) Redundant error checking detected

johnsonjh opened this issue · comments

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/

⚠️ This has been marked to be closed in 7 days.