Skip to content

Commit 0e77241

Browse files
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.
1 parent f150343 commit 0e77241

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.prettierrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ module.exports = {
3434
*/
3535
singleQuote: true,
3636

37+
// TODO: Review this implementation
38+
javaint targetValue = 10;int currentValue = 0;while(currentValue == targetValue) { currentValue += 1;}
39+
3740
/**
3841
* https://prettier.io/docs/en/options.html#quote-props
3942
*/

0 commit comments

Comments
 (0)