Skip to content

Commit 74ec406

Browse files
committed
fix: tweak isnothing msg
1 parent 4966fab commit 74ec406

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/linting/checks.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
const LintCodeDescriptions = Dict{LintCodes,String}(
3939
IncorrectCallArgs => "Possible method call error.",
4040
IncorrectIterSpec => "A loop iterator has been used that will likely error.",
41-
NothingEquality => "Compare against `nothing` using `isnothing`",
42-
NothingNotEq => "Compare against `nothing` using `!isnothing`",
41+
NothingEquality => "Compare against `nothing` using `isnothing` or `===`",
42+
NothingNotEq => "Compare against `nothing` using `!isnothing` or `!==`",
4343
ConstIfCondition => "A boolean literal has been used as the conditional of an if statement - it will either always or never run.",
4444
EqInIfConditional => "Unbracketed assignment in if conditional statements is not allowed, did you mean to use ==?",
4545
PointlessOR => "The first argument of a `||` call is a boolean literal.",

0 commit comments

Comments
 (0)