bitshares / bitshares-core

BitShares Blockchain node and command-line wallet
https://bitshares.github.io/
Other
1.17k stars 643 forks source link

Add defensive check to mute SonarScanner warning #2540

Closed abitmore closed 2 years ago

abitmore commented 2 years ago

SonarScanner (version 4.6.2.2472) reports a division by zero error in the /= operation below, which is a false positive.

sonarcloud[bot] commented 2 years ago

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