Commit 0d19bc9
committed
refactor: extract nested conditional expression into separate statements
Code quality improvement:
- Extract nested ternary operator into clear if-elif-else structure
- Improve readability of confidence level determination
- Make order of operations explicit and easier to understand
Before: nested ternary 'High' if > 0.8 else 'Medium' if > 0.6 else 'Low'
After: clear if-elif-else statements with separate variable
Benefits:
- More readable and maintainable code
- Easier to debug and modify
- Clearer intent and logic flow1 parent 2f40bb4 commit 0d19bc9
1 file changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
268 | 276 | | |
269 | 277 | | |
270 | 278 | | |
| |||
278 | 286 | | |
279 | 287 | | |
280 | 288 | | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
| 289 | + | |
286 | 290 | | |
287 | 291 | | |
288 | 292 | | |
| |||
0 commit comments