Commit 9bba89c
committed
Refactor wc.js to improve code clarity and reduce redundancy
- Remove redundant noFlagsProvided variable
- Use shouldShowAllStats directly in action handler
- Restructure printFormattedReport logic with if-else block
- Replace repetitive "shouldShowAllStats ||" conditions with cleaner conditional
- Improves readability: shows all stats in one block, then handles individual flags1 parent 2e77d1e commit 9bba89c
1 file changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
62 | | - | |
63 | | - | |
64 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
| |||
0 commit comments