Commit 98cdec5
committed
refactor: remove unneeded word plural helper method
The `selectWordFromCount` helper method, while serving a seemingly
helpful purpose, is only used once and is also private to be used in the
same class only.
Besides the fact that we can technically move it somewhere more
appropriate and increase its visibility so other classes can utilize it,
remove the helepr method and resort to ternary operators for that one
time we need to determine the plurarity of the word "minute" in our
`CreateRoleApplicationCommand` class.
Suggested-by: Zabuzard <zabuza.dev@gmail.com>
Signed-off-by: Chris Sdogkos <work@chris-sdogkos.com>1 parent 4690d67 commit 98cdec5
1 file changed
Lines changed: 1 addition & 18 deletions
File tree
- application/src/main/java/org/togetherjava/tjbot/features/roleapplication
Lines changed: 1 addition & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | 164 | | |
182 | 165 | | |
183 | 166 | | |
| |||
0 commit comments