fix: reverse clone of list, not global
This commit is contained in:
parent
bdb116dab5
commit
9bc1206ef5
1 changed files with 2 additions and 0 deletions
|
@ -103,6 +103,8 @@ var stormlight []Book = []Book{
|
|||
|
||||
func getBookWithTimestamp(timeRemaining time.Duration) (string, time.Duration) {
|
||||
timeRemaining = time.Duration(timeRemaining.Hours()/24) * 45 * time.Minute
|
||||
|
||||
stormlight := slices.Clone(stormlight)
|
||||
slices.Reverse(stormlight)
|
||||
|
||||
for _, book := range stormlight {
|
||||
|
|
Loading…
Reference in a new issue