Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Unexpected Weird Ternary warning. #2

@microwheels

Description

@microwheels

I have the following lines at the end of a javascript function. When I ran JSLint on it I get a 'weird ternary' warning on the last line.

        return node === null
            ? {'node': this.storeContentsNode, 'placement': undefined}
            : {'node': node.domNode, 'placement': 'after'};

If I'm doing something wrong I'd like to know but the warning message isn't particularly helpful.

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