Skip to content

Remove unnecessary null check from keywordFilter#3737

Merged
2dust merged 2 commits into2dust:masterfrom
codewithtamim:fix/remove-null-check-from-keyword-filter
Oct 22, 2024
Merged

Remove unnecessary null check from keywordFilter#3737
2dust merged 2 commits into2dust:masterfrom
codewithtamim:fix/remove-null-check-from-keyword-filter

Conversation

@codewithtamim
Copy link
Copy Markdown
Contributor

  • Replaced keywordFilter.isNullOrEmpty() with keywordFilter.isEmpty() since keywordFilter is guaranteed to never be null.
  • Simplified the logic by removing the redundant null check, improving code readability.

- Replaced `keywordFilter.isNullOrEmpty()` with `keywordFilter.isEmpty()` since `keywordFilter` is guaranteed to never be null.
- Simplified the logic by removing the redundant null check, improving code readability.
- Replaced `keywordFilter.isNullOrEmpty()` with `keywordFilter.isEmpty()` since `keywordFilter` is guaranteed to never be null.
- Simplified the logic by removing the redundant null check, improving code readability.
@2dust 2dust merged commit 77042f6 into 2dust:master Oct 22, 2024
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.

2 participants