Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

UniquePersonList: Simplify logic of updatePerson(...) #621

Closed
@Zhiyuan-Amos

Description

This method retrieves the person in the list to be updated, and calls
Person#resetData(ReadOnlyPerson) to update the values of that person.

We do not need to retrieve the person in the list to be updated, to
update the list accordingly.

Let’s simplify the logic by setting the updated Person object in place
of the person to be updated.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions