Skip to content

Commit

Permalink
Merge pull request #348 from nsajko/nothing
Browse files Browse the repository at this point in the history
recommend isnothing for comparing against nothing
  • Loading branch information
pfitzseb authored Sep 25, 2023
2 parents 371ec18 + 33e60e2 commit 4966fab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/linting/checks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
const LintCodeDescriptions = Dict{LintCodes,String}(
IncorrectCallArgs => "Possible method call error.",
IncorrectIterSpec => "A loop iterator has been used that will likely error.",
NothingEquality => "Compare against `nothing` using `===`",
NothingNotEq => "Compare against `nothing` using `!==`",
NothingEquality => "Compare against `nothing` using `isnothing`",
NothingNotEq => "Compare against `nothing` using `!isnothing`",
ConstIfCondition => "A boolean literal has been used as the conditional of an if statement - it will either always or never run.",
EqInIfConditional => "Unbracketed assignment in if conditional statements is not allowed, did you mean to use ==?",
PointlessOR => "The first argument of a `||` call is a boolean literal.",
Expand Down

0 comments on commit 4966fab

Please sign in to comment.