Commit 91fe22a
committed
Consolidate deficits for-loops
Merge the two separate for-loops that iterated over
the deficits items in `_distribute_power()`. It was
determined that iterating twice over the deficits items
is unnecessary. As a result, the two loops have been now
consolidated into a single loop maintaining its functionality.
Signed-off-by: Daniel Zullo <[email protected]>1 parent fdd9e27 commit 91fe22a
1 file changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | 415 | | |
422 | 416 | | |
423 | 417 | | |
424 | 418 | | |
425 | 419 | | |
426 | 420 | | |
427 | 421 | | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
428 | 426 | | |
429 | 427 | | |
430 | 428 | | |
| |||
0 commit comments