HomeSource World

all: simplify nested complexity and if blocks ending with a return statement…

Description

all: simplify nested complexity and if blocks ending with a return statement (#21854)

Changes:

    Simplify nested complexity
    If an if blocks ends with a return statement then remove the else nesting.

Most of the changes has also been reported in golint https://goreportcard.com/report/github.com/ethereum/go-ethereum#golint

Details

Provenance
Alex Prut <1648497+alexprut@users.noreply.github.com>Authored on Nov 25 2020, 8:24 AM
GitHub <noreply@github.com>Committed on Nov 25 2020, 8:24 AM
Parents
rGETH29efe1fc7ecc: core/types: fixed typo (#21897)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGETHc92faee66e88: all: simplify nested complexity and if blocks ending with a return statement… (authored by Alex Prut <1648497+alexprut@users.noreply.github.com>).Nov 25 2020, 8:24 AM