mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 00:45:44 +01:00
Remove unused parameter
This commit is contained in:
@@ -29,7 +29,7 @@ class ResourceManagerAdapter<T extends ModelObject, D extends HalRepresentation,
|
||||
return Response.ok(dto).build();
|
||||
}
|
||||
|
||||
public Response update(String id, D dto, Function<T, T> mapper) {
|
||||
public Response update(String id, Function<T, T> mapper) {
|
||||
T existingEntity = manager.get(id);
|
||||
T changedEntity = mapper.apply(existingEntity);
|
||||
return update(id, changedEntity);
|
||||
|
||||
@@ -74,7 +74,7 @@ public class UserResource {
|
||||
})
|
||||
@TypeHint(TypeHint.NO_CONTENT.class)
|
||||
public Response update(@Context UriInfo uriInfo, @PathParam("id") String name, UserDto userDto) {
|
||||
return adapter.update(name, userDto, existing -> dtoToUserMapper.map(userDto, existing.getPassword()));
|
||||
return adapter.update(name, existing -> dtoToUserMapper.map(userDto, existing.getPassword()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user