#860 - Polishing.
Removed some superfluous variables. Replaces Hamcrest with AssertJ. Formatting.
This commit is contained in:
committed by
Greg Turnquist
parent
c35a700eca
commit
dbf9e4bc73
@@ -155,8 +155,7 @@ public class EmployeeController {
|
||||
// end::patch[]
|
||||
{
|
||||
|
||||
Employee oldEmployee = EMPLOYEES.get(id);
|
||||
Employee newEmployee = oldEmployee;
|
||||
Employee newEmployee = EMPLOYEES.get(id);
|
||||
|
||||
if (employee.getContent().getName() != null) {
|
||||
newEmployee = newEmployee.withName(employee.getContent().getName());
|
||||
|
||||
Reference in New Issue
Block a user