From ab059616b565a9d647c529d1be9eaf531fc40452 Mon Sep 17 00:00:00 2001 From: Sijawusz Pur Rahnama Date: Mon, 19 Dec 2022 21:02:11 +0100 Subject: [PATCH] Switch from `Hash` to `NamedTuple` for `AmbiguousAssignment::MISTAKES` --- src/ameba/rule/lint/ambiguous_assignment.cr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ameba/rule/lint/ambiguous_assignment.cr b/src/ameba/rule/lint/ambiguous_assignment.cr index 3fc0fd58..f0f1bd7a 100644 --- a/src/ameba/rule/lint/ambiguous_assignment.cr +++ b/src/ameba/rule/lint/ambiguous_assignment.cr @@ -33,9 +33,9 @@ module Ameba::Rule::Lint MSG = "Suspicious assignment detected. Did you mean `%s`?" MISTAKES = { - "=-" => "-=", - "=+" => "+=", - "=!" => "!=", + "=-": "-=", + "=+": "+=", + "=!": "!=", } def test(source, node : Crystal::Assign)