Go

Go

Made by DeepSource

Redundant error checking RVV-B0005

Style
Major
Autofix

Some simple error checking patterns can be reduced to just a single return statement returning a variable of type Error.

Bad practice

if err != nil {
    return err
}
return nil

Recommended

return err