mirror of
https://github.com/labs42io/clean-code-typescript.git
synced 2024-11-23 05:34:04 +00:00
Fixed "good" example calling undefined variable.
> ###Remove duplicate code### -> **Good:** --> `developer` was called but never declared, should have been `employee`
This commit is contained in:
parent
b0771b8e8c
commit
e5a292528f
|
@ -509,8 +509,8 @@ class Manager {
|
|||
|
||||
function showEmployeeList(employee: Developer | Manager) {
|
||||
employee.forEach((employee) => {
|
||||
const expectedSalary = developer.calculateExpectedSalary();
|
||||
const experience = developer.getExperience();
|
||||
const expectedSalary = employee.calculateExpectedSalary();
|
||||
const experience = employee.getExperience();
|
||||
const extra = employee.getExtraDetails();
|
||||
|
||||
const data = {
|
||||
|
|
Loading…
Reference in a new issue