Skip to content

Replace param decorator duplicate check #192

@VikramAditya33

Description

@VikramAditya33

src/websocket/decorators/param-decorator.utils.ts uses findIndex followed by array indexing to retrieve an existing parameter metadata entry. This can be simplified to a single find() call.

const existing = existingParams.find((p) => p.index === parameterIndex);
if (existing) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersrefactorAny fix around optimization/refactor/perf

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions