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

Remove unreachable condition to raise organisation NotFound #5764

Merged
merged 2 commits into from
May 5, 2023

Conversation

Aadesh-Baral
Copy link
Contributor

@Aadesh-Baral Aadesh-Baral commented May 5, 2023

The condtion to raise NotFound was unreachable as the function to return org already would have raised the NotFound exception if org was returned None. This PR removes that condition and updates the test case reflecting the change.

---------------------------------

The condtion to raise NotFound was unreachable as the function to return org already would have raised the NotFound exception if org was returned None.
@Aadesh-Baral Aadesh-Baral self-assigned this May 5, 2023
---------------------------------------
In the previous implementation a non reachable condition was present that raised NotFound is org was none. As we were mocking the function to return the org as None it was reachable on test case. This commits updates the test case to reflect that change.
@sonarcloud
Copy link

sonarcloud bot commented May 5, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Aadesh-Baral Aadesh-Baral marked this pull request as ready for review May 5, 2023 07:52
@Aadesh-Baral Aadesh-Baral merged commit 93a382a into develop May 5, 2023
5 checks passed
@Aadesh-Baral Aadesh-Baral deleted the fix/sonarcloud-unreachable-code branch May 5, 2023 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant