Commit 7355e15
refactor: move _COUNT_THOUSANDS/_COUNT_MILLIONS/_SECONDS_PER_MINUTE/_MINUTES_PER_HOUR before the functions that use them
Constants were defined after format_count, which used them. Readers had
to scroll past the function body to discover what the constants were.
Moving them above both format_count and format_duration follows the
conventional "define before use" order.
Co-authored-by: Ralphify <noreply@ralphify.co>1 parent 00199ca commit 7355e15
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
90 | 96 | | |
91 | 97 | | |
92 | 98 | | |
| |||
109 | 115 | | |
110 | 116 | | |
111 | 117 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
0 commit comments