danielfloresd / team-profile-generator

Class methods should utilize this JS-0105
Anti-pattern
Minor
a year agoa year old
Expected 'this' to be used by class method 'getRole'
26        return this.officeNumber;
27    }
28
29    getRole() {30        return 'Manager';
31    }
32}
Expected 'this' to be used by class method 'getRole'
25        return this.school;
26    }
27
28    getRole() {29        return 'Intern';
30    }
31}
Expected 'this' to be used by class method 'getRole'
26        return this.github;
27    }
28
29    getRole() {30        return 'Engineer';
31    }
32}
Expected 'this' to be used by class method 'getRole'
41        return this.email;     
42    }
43
44    getRole() { 45        return 'Employee';
46    }
47}