ProvableHQ / sdk

A Software Development Kit (SDK) for Zero-Knowledge Transactions
https://provable.tools
GNU General Public License v3.0
584 stars 468 forks source link

refactor: change inverted conditions #842

Open NguyenTuanCanh opened 8 months ago

NguyenTuanCanh commented 8 months ago

Instead of using inverted conditions, you should strive to write code that is clear and readable by using original (non-negated) conditions and providing meaningful variable and function names. This helps readers of the code better understand the purpose and behavior of the code. if (skip) { // Do something when skip } else { // Do something when not skip }

Arbuzer3000 commented 1 month ago

gm