Switch from Hash to NamedTuple for AmbiguousAssignment::MISTAKES

This commit is contained in:
Sijawusz Pur Rahnama 2022-12-19 21:02:11 +01:00
parent 70078cf77f
commit ab059616b5

View file

@ -33,9 +33,9 @@ module Ameba::Rule::Lint
MSG = "Suspicious assignment detected. Did you mean `%s`?"
MISTAKES = {
"=-" => "-=",
"=+" => "+=",
"=!" => "!=",
"=-": "-=",
"=+": "+=",
"=!": "!=",
}
def test(source, node : Crystal::Assign)