staempfli/magento2-module-checkout-newsletter-subscription

View on GitHub

Showing 1 of 1 total issue

Function validate has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            validate: function () {
                var isCustomer = customer.isLoggedIn();
                var status = getNewsletterSubscribtionStatus();
                var quoteId = quote.getQuoteId();
                var url;
Severity: Minor
Found in view/frontend/web/js/model/newsletter-validator.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language