Skip to content

Commit

Permalink
Merge pull request ryanmcdermott#216 from Neatoro/fix-duplicate-code
Browse files Browse the repository at this point in the history
Fix duplicate code example
  • Loading branch information
ryanmcdermott authored May 11, 2017
2 parents 578f35c + f5085c9 commit 0a8199a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -440,10 +440,14 @@ function showEmployeeList(employees) {
const expectedSalary = employee.calculateExpectedSalary();
const experience = employee.getExperience();
let portfolio = employee.getGithubLink();
if (employee.type === 'manager') {
portfolio = employee.getMBAProjects();
let portfolio;
switch (employee.type) {
case 'manager':
portfolio = employee.getMBAProjects();
break;
case 'developer':
portfolio = employee.getGithubLink();
break;
}
const data = {
Expand Down

0 comments on commit 0a8199a

Please sign in to comment.