elliotchance/gedcom

View on GitHub
q/last_expr.go

Summary

Maintainability
A
45 mins
Test Coverage

Method LastExpr.Evaluate has 7 return statements (exceeds 4 allowed).
Open

func (e *LastExpr) Evaluate(engine *Engine, input interface{}, args []*Statement) (interface{}, error) {
    in := reflect.ValueOf(input)

    if len(args) != 1 {
        return nil, errors.New("function Last() must take a single argument")
Severity: Major
Found in q/last_expr.go - About 45 mins to fix

    There are no issues that match your filters.

    Category
    Status