Commit 91b48dd
refactor(partition): simplify redundant condition in chart drawing
Remove redundant `else if (m_sumValue >= 100)` condition check,
simplify to `else` since the preceding `if` already covers the
complementary case.
简化分区图表绘制中冗余的条件判断,将 else if 简化为 else。
Log: 简化分区图表绘制冗余条件
PMS: https://pms.uniontech.com/bug-view-354861.html
Influence: 仅代码逻辑简化,不影响功能行为。1 parent 122cbf2 commit 91b48dd
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| |||
0 commit comments