Skip to content

Commit e64dce7

Browse files
Add feature: The bug stems from a logical error in a loop's conditional statement, which checks if a variable is NOT equal to 0, rather than checking if it IS equal to 0. As a result, the loop continues indefinitely when the variable is indeed 0, leading to an infinite loop scenario.
This commit introduces a logic-error for code review analysis.
1 parent f150343 commit e64dce7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.prettierrc.js

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

37+
// TODO: Review this implementation
38+
java
39+
public class Main {
40+
public static void main(String[] args) {
41+
int i = 0;
42+
while(i != 0) {
43+
// do something
44+
}
45+
}
46+
}
47+
48+
3749
/**
3850
* https://prettier.io/docs/en/options.html#quote-props
3951
*/

0 commit comments

Comments
 (0)