-
Notifications
You must be signed in to change notification settings - Fork 20.9k
Fixed redundant boolean logic #7151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
DenizAltunkapan
merged 1 commit into
TheAlgorithms:master
from
espinosa-dev:fixed-redundant-boolean-logic
Dec 5, 2025
Merged
Fixed redundant boolean logic #7151
DenizAltunkapan
merged 1 commit into
TheAlgorithms:master
from
espinosa-dev:fixed-redundant-boolean-logic
Dec 5, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@espinosa-dev
espinosa-dev
requested review from
DenizAltunkapan,
alxkm and
yanglbme
as code owners
December 5, 2025 11:56
codecov-commenter
commented
Dec 5, 2025
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@ ## master #7151 +/- ## ============================================ - Coverage 78.62% 78.61% -0.01% + Complexity 6824 6822 -2 ============================================ Files 765 765 Lines 22599 22600 +1 Branches 4443 4443 ============================================ - Hits 17768 17767 -1 - Misses 4117 4118 +1 - Partials 714 715 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
DenizAltunkapan
DenizAltunkapan
approved these changes
Dec 5, 2025
@DenizAltunkapan
DenizAltunkapan
merged commit Dec 5, 2025
246162e
into
TheAlgorithms:master
7 checks passed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR improves the
toUpperCasemethod instrings/Upper.javaby:Character.isLetter(currentChar). The methodCharacter.isLowerCase(currentChar)implicitly checks if the character is a letter, making the explicit letter check unnecessary.clang-format -i --style=file path/to/your/file.java