grokify/mogo

View on GitHub
time/timeutil/duration.go

Summary

Maintainability
A
45 mins
Test Coverage

Avoid deeply nested control flow statements.
Open

        } else if units == "y" {
            s = fmt.Sprintf("%vs", i*YearSeconds)
        } else {
            return zeroDuration, errors.New("timeutil.ParseDuration Parse Error")
        }
Severity: Major
Found in time/timeutil/duration.go - About 45 mins to fix

    There are no issues that match your filters.

    Category
    Status