Skip to content

Replace param decorator duplicate check #192

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) {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions