angelakuo/citydogshare

View on GitHub
public/assets/moment/sl-81321b57d2075696cf543368790543aa58e796b6fb77d0cf78fa17cbc4134dfe.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function processRelativeTime has 68 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function processRelativeTime(number, withoutSuffix, key, isFuture) {
        var result = number + ' ';
        switch (key) {
            case 's':
                return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';

    Avoid too many return statements within this function.
    Open

                    return result;

      There are no issues that match your filters.

      Category
      Status