Skip to content

in test, unexpected use of route?.query #3486

@ElectricNroff

Description

@ElectricNroff

} else if (route.name != 'home' || route?.query) {

This is potentially hard to understand and maintain. If there is a chance that route might be null or undefined, then this line would need route?.name in addition to route?.query (there are no other uses of route? in the file).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions