From d2fbf484f482bd1d2d98257cdcf56a381f4308a6 Mon Sep 17 00:00:00 2001 From: Vitalii Elenhaupt Date: Fri, 14 Oct 2022 20:53:52 +0300 Subject: [PATCH] Crystal 1.6 support --- src/ameba/rule/style/redundant_begin.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ameba/rule/style/redundant_begin.cr b/src/ameba/rule/style/redundant_begin.cr index 5e68efaf..779e4aa8 100644 --- a/src/ameba/rule/style/redundant_begin.cr +++ b/src/ameba/rule/style/redundant_begin.cr @@ -123,7 +123,7 @@ module Ameba::Rule::Style break when .ident? next unless in_body - return unless token.value == :begin + return unless token.value == Crystal::Keyword::BEGIN return token.location when .op_lparen? in_argument_list = true @@ -143,7 +143,7 @@ module Ameba::Rule::Style end_loc = def_end_loc = nil while !(token = lexer.next_token).type.eof? - next unless token.value == :end + next unless token.value == Crystal::Keyword::END end_loc, def_end_loc = def_end_loc, token.location end