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

fix(backend): Sonar Quality Gate failure due to potential division by zero (#30337) #30338

Merged

Conversation

dcolina
Copy link
Contributor

@dcolina dcolina commented Oct 14, 2024

Proposed Changes

  • To avoid division by zero in the LargeFileReader class, you should add a check before performing any division operation. In this class, the division operation is performed when calculating the progressPercentage.

Additional Info

Related to #30337 (Sonar Quality Gate failure due to potential division by zero).

This PR fixes: #30337

@dcolina dcolina linked an issue Oct 14, 2024 that may be closed by this pull request
4 tasks
@dcolina dcolina changed the title fix(backend): Sonar Quality Gate failure due to potential divisi (#30337) fix(backend): Sonar Quality Gate failure due to potential division by zero (#30337) Oct 14, 2024
@dcolina dcolina added this pull request to the merge queue Oct 14, 2024
Merged via the queue into main with commit 298ce7a Oct 14, 2024
35 checks passed
@dcolina dcolina deleted the issue-30337-sonar-quality-gate-failure-due-to-potential branch October 14, 2024 15:10
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.

Sonar Quality Gate failure due to potential division by zero
3 participants