Skip to content
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

Refactor code to improve readability and maintainability #1534

Merged
merged 3 commits into from Sep 25, 2023

Conversation

Tobianas
Copy link
Contributor

This also resolves bugs reported by sonarcloud.

JIRA: LIGHTY-235

This return statement returned the first notification update it found,
making the for loop unnecessary. Just remove the iteration and return
first from the list.

JIRA: LIGHTY-235
Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>
Add a null check to ensure that the values are not null.

JIRA: LIGHTY-235
Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>
Improve the return of this method and conditions to make it more readable.

JIRA: LIGHTY-235
Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>
@ihrasko ihrasko merged commit 2e2cc11 into PANTHEONtech:main Sep 25, 2023
6 checks passed
@Tobianas Tobianas deleted the mainSonarcloudFix branch April 30, 2024 08:38
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.

None yet

2 participants