Skip to content

fate(core/lint): simplify Boolean comparisons #55

@gretmn102

Description

@gretmn102

Suggest the following replacements:

  • Expression isNum($str) = -1 on isNum($str)
  • Expression isNum($str) = 0 on no isNum($str)

The first case is worth especially because isNum in 7.9, for example, returns 1 instead of -1, which leads to incorrect calculations.

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