Commit 77adc44
committed
refactor: move
Move the `correctMinutesWord` string inside the if-statement below it
due to the fact that that is the only place where that variable is being
used.
`remainingMinutes` is left intact in the same scope since it is needed
as a reference in the if-statement itself to compare against zero.
Suggested-by: Zabuzard <zabuza.dev@gmail.com>
Signed-off-by: Chris Sdogkos <work@chris-sdogkos.com>correctMinutesWord inside block1 parent 98cdec5 commit 77adc44
1 file changed
Lines changed: 2 additions & 2 deletions
File tree
- application/src/main/java/org/togetherjava/tjbot/features/roleapplication
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | 127 | | |
| 128 | + | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
0 commit comments