yasshi2525/RushHour

View on GitHub
controllers/v1/rail.go

Summary

Maintainability
A
45 mins
Test Coverage
F
0%

Avoid deeply nested control flow statements.
Open

            if re, err := services.ConnectRailNode(o, from.(*entities.RailNode), to.(*entities.RailNode), sc.Scale); err != nil {
                c.Set(keyErr, err)
            } else {
                c.Set(keyOk, &connectResponse{re, re.Reverse})
            }
Severity: Major
Found in controllers/v1/rail.go - About 45 mins to fix

    There are no issues that match your filters.

    Category
    Status