gfw-api/gfw-subscription-api

View on GitHub
app/src/services/alertUrlService.js

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Function generate has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    static generate(subscription, layer, begin, end) {
        const diffInDays = moment(begin).diff(moment(end), 'days');

        const queryForUrl = {
            lang: subscription.language || 'en',
Severity: Minor
Found in app/src/services/alertUrlService.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status