topfreegames/khan

View on GitHub
api/helpers.go

Summary

Maintainability
A
35 mins
Test Coverage

Function LoadJSONPayload has 5 return statements (exceeds 4 allowed).
Open

func LoadJSONPayload(payloadStruct interface{}, c echo.Context, logger zap.Logger) error {
    log.D(logger, "Loading payload...")

    data, err := GetRequestBody(c)
    if err != nil {
Severity: Major
Found in api/helpers.go - About 35 mins to fix

    Your code does not pass gofmt in 4 places. Go fmt your code!
    Open

    // khan
    Severity: Minor
    Found in api/helpers.go by gofmt

    There are no issues that match your filters.

    Category
    Status