From bbc333001ec45f328b3769c46442b33f4bc96ab9 Mon Sep 17 00:00:00 2001 From: Rishi Saraf Date: Mon, 11 Aug 2025 21:49:22 +0530 Subject: [PATCH] Add feature: This logic error bug occurs when the developer incorrectly uses the equality operator (==) instead of the assignment operator (=) in a conditional statement within a loop. This results in the loop running indefinitely, causing the application to hang. This commit introduces a logic-error for code review analysis. --- .prettierrc.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.prettierrc.js b/.prettierrc.js index ebf28d8091..1a5050f4e5 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -34,6 +34,9 @@ module.exports = { */ singleQuote: true, +// TODO: Review this implementation +javaint targetValue = 10;int currentValue = 0;while(currentValue == targetValue) { currentValue += 1;} + /** * https://prettier.io/docs/en/options.html#quote-props */