ishanvyas22 / cakephpvue-spa

Either all code paths should have explicit returns, or none of them JS-0045
Anti-pattern
Minor
5 months ago3 years old
Expected to return a value at the end of method 'get'
 7        this.errors = errors;
 8    }
 9
10    get(field) {11        if (this.errors[field]) {
12            return this.errors[field];
13        }