Skip to content

Missing await causes true evaluation #22

Open
@rossgrambo

Description

@rossgrambo
if (temp.isEnabled("foo")) {
    button.className = "cool";
    button.textContent = "Cool Button";
} else {
    button.className = "lame";
    button.textContent = "Lame Button";
}

We will always run the "cool" path here, because I didn't put an await on the isEnabled call. I think this is bad.

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