Skip to content

New linter for if(x == TRUE) and if(x == FALSE) #1500

Closed
@eitsupi

Description

@eitsupi

It may be useful for beginners if this is pointed out by lintr, since it may be more appropriate to rewrite if(x == TRUE) {...} as follows

if(x) {...}
if(isTRUE(x)) {...}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions