Commit 37b118f
committed
Cleanup: restructure code for clarity
There was no reason to declare a variable for disabledReason, assign it inside
the "if binding.GetDisabledReason != nil" statement, and then check its value
again after that if statement. Move all that code inside the first if statement
to make the control flow easier to understand.1 parent 9e64f7d commit 37b118f
1 file changed
+9
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
526 | | - | |
527 | 526 | | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
534 | 531 | | |
535 | | - | |
536 | | - | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
537 | 536 | | |
538 | | - | |
539 | 537 | | |
| 538 | + | |
540 | 539 | | |
541 | 540 | | |
0 commit comments