Skip to content

Replace param decorator duplicate check #192

Closed

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

  1. added this to the v2.1.0 milestone on May 23, 2026
  2. added
    good first issue
    refactor
    on May 23, 2026
  3. wahajahmed010 commented on May 28, 2026

    @wahajahmed010
    Contributor

    Hi! I'd like to work on this issue. Could you please assign it to me? I have a PR open (#199) that addresses this.

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

Metadata

Metadata

Assignees

Labels

good first issuerefactor

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions