Skip to content

Refactor UpdateChordCommand to avoid parameter mutation #218

@joekotvas

Description

@joekotvas

The constructor of UpdateChordCommand currently reassigns the updates parameter which is a confusing pattern for code readability.

Recommendation:
Update the constructor in src/commands/chord/UpdateChordCommand.ts to use a separate local variable for validation before assigning to this.validatedUpdates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions