From 583af702b90cb2904627c86c542fa5ce22c5cb08 Mon Sep 17 00:00:00 2001 From: "deepsource-dev-autofix[bot]" <61578317+deepsource-dev-autofix[bot]@users.noreply.github.com> Date: Fri, 8 Jul 2022 08:12:33 +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