elliotchance/gedcom

View on GitHub
q/first_expr.go

Summary

Maintainability
A
40 mins
Test Coverage

Method FirstExpr.Evaluate has 6 return statements (exceeds 4 allowed).
Open

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

    if len(args) != 1 {
        return nil, fmt.Errorf("function First() must take a single argument")
Severity: Major
Found in q/first_expr.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status