Skip to content

fixing_nested_if#2647

Merged
geekcomputers merged 1 commit intogeekcomputers:masterfrom
LAbhilashKumar:fixing_nested_if
May 1, 2025
Merged

fixing_nested_if#2647
geekcomputers merged 1 commit intogeekcomputers:masterfrom
LAbhilashKumar:fixing_nested_if

Conversation

@LAbhilashKumar
Copy link
Copy Markdown
Contributor

@LAbhilashKumar LAbhilashKumar commented May 1, 2025

This update simplifies the condition checking by replacing nested if-else blocks with if-elif-else statements. By using elif, the code becomes more efficient and easier to read. Once a condition is satisfied, the rest of the checks are skipped, reducing unnecessary steps. This makes the code more organized and enhances readability, especially when there are multiple conditions to evaluate.

Addresses issue: #1910

@geekcomputers geekcomputers merged commit a20babb into geekcomputers:master May 1, 2025
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants