bnkamalesh/goapp

View on GitHub
lib/goapp/goapp.go

Summary

Maintainability
A
35 mins
Test Coverage

Method GoApp.CreateUser has 5 return statements (exceeds 4 allowed).
Open

func (ht *GoApp) CreateUser(ctx context.Context, us *User) (*User, error) {
    payload, err := json.Marshal(us)
    if err != nil {
        return nil, errors.Wrap(err, "failed marshaling to json")
    }
Severity: Major
Found in lib/goapp/goapp.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status