Skip to content

Redundant code  #1

Open
Open
@ArthurZC23

Description

@ArthurZC23

When throwing an error in the getJwks method because the status code isn't right, we have the following argument for the JwksError: res.body && (res.body.message || res.body) || res.statusMessage || Http Error ${res.statusCode}``.

By set logic res.body && (res.body.message || res.body) will always be res.body. Therefore, either (res.body.message || res.body) is not necessary or we should change one of the logic operators.

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