Skip to content

Question: Is this.ackRequests.has(requestId) a redundant condition? #549

@zishang520

Description

@zishang520

If requestId does not exist in this.requests, but exists in this.ackRequests:

!(this.requests.has(requestId) || this.ackRequests.has(requestId))

L537 will have an exception:

const request = this.requests.get(requestId);

Metadata

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