mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Switch from Hash
to NamedTuple
for AmbiguousAssignment::MISTAKES
This commit is contained in:
parent
70078cf77f
commit
ab059616b5
1 changed files with 3 additions and 3 deletions
|
@ -33,9 +33,9 @@ module Ameba::Rule::Lint
|
|||
MSG = "Suspicious assignment detected. Did you mean `%s`?"
|
||||
|
||||
MISTAKES = {
|
||||
"=-" => "-=",
|
||||
"=+" => "+=",
|
||||
"=!" => "!=",
|
||||
"=-": "-=",
|
||||
"=+": "+=",
|
||||
"=!": "!=",
|
||||
}
|
||||
|
||||
def test(source, node : Crystal::Assign)
|
||||
|
|
Loading…
Reference in a new issue