Commit 26f3dc7
refactor: extract _peek_status_msg to eliminate duplicated peek message conditional
The structured-vs-raw peek message selection was duplicated in both
toggle_peek() and _on_run_started(). Centralizing it in a single helper
makes the logic easier to follow and provides one place to change if
the messages evolve.
Co-authored-by: Ralphify <noreply@ralphify.co>1 parent 800528f commit 26f3dc7
1 file changed
Lines changed: 8 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
859 | 859 | | |
860 | 860 | | |
861 | 861 | | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
862 | 868 | | |
863 | 869 | | |
864 | 870 | | |
| |||
870 | 876 | | |
871 | 877 | | |
872 | 878 | | |
873 | | - | |
874 | | - | |
875 | | - | |
876 | | - | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | | - | |
| 879 | + | |
881 | 880 | | |
882 | 881 | | |
883 | 882 | | |
| |||
945 | 944 | | |
946 | 945 | | |
947 | 946 | | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
952 | | - | |
953 | | - | |
| 947 | + | |
954 | 948 | | |
955 | 949 | | |
956 | 950 | | |
| |||
0 commit comments