Opetushallitus/eperusteet-opintopolku

View on GitHub
eperusteet-opintopolku-app/yo/app/scripts/common/services/kuvat.ts

Summary

Maintainability
A
1 hr
Test Coverage

Consider simplifying this complex logical expression.
Open

                if ($state.includes("root.amops")) {
                    const opsId = (params && params.amosaa && params.amosaa.opsId) || $stateParams.opsId;
                    const ktId = (params && params.amosaa && params.amosaa.ktId);
                    let url = (opsBase.AMOSAA_OPS + "/kuvat").replace(":opsId", "" + opsId || this.getOpsId()) + "/" + image.id;

Severity: Major
Found in eperusteet-opintopolku-app/yo/app/scripts/common/services/kuvat.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status