Commit e12f62f
authored
Fixed duplicate code
The proposed "good" way of coding was actually changing a property's name in the developers object.
While one can argue that in this case they could be the same, the point of the example was to show that you can still remove duplicated code that require *different* things.1 parent 6e7b67b commit e12f62f
1 file changed
+7
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
442 | 447 | | |
443 | | - | |
444 | 448 | | |
445 | 449 | | |
446 | | - | |
| 450 | + | |
447 | 451 | | |
448 | 452 | | |
449 | | - | |
| 453 | + | |
450 | 454 | | |
451 | 455 | | |
452 | 456 | | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | 457 | | |
460 | 458 | | |
461 | 459 | | |
| |||
0 commit comments