Commit b032f42
refactor: add _COUNT_THOUSANDS/_COUNT_MILLIONS constants to match _SECONDS_PER_MINUTE pattern
format_count used bare 1_000 and 1_000_000 literals six times while the
adjacent format_duration already named its thresholds. Replacing the magic
numbers with named constants makes the two formatters consistent and removes
the repeated literals.
Co-authored-by: Ralphify <noreply@ralphify.co>1 parent 86829de commit b032f42
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
103 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
| |||
0 commit comments