From 12bc81c35292842b919430885b9ddc4a2d9d66fb Mon Sep 17 00:00:00 2001 From: "enterprise-ds-icu-default[bot]" <88178190+enterprise-ds-icu-default[bot]@users.noreply.github.com> Date: Thu, 2 Dec 2021 11:32:57 +0000 Subject: [PATCH] Use multiple comparisons instead of single comparison with multiple values --- code.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code.rb b/code.rb index 462b547..ca08c45 100644 --- a/code.rb +++ b/code.rb @@ -13,8 +13,8 @@ end while a == b # Raises "multiple comparison detected" -x < y < z -10 <= x <= 20 +x < y && y < z +10 <= x && x <= 20 # Raises "empty rescue block detected" begin