Skip to content

Commit f3d799f

Browse files
committed
fix: deps tidy after bump
1 parent 833cafc commit f3d799f

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module github.com/alxarno/tinytune
22

3-
go 1.22.5
3+
go 1.23.0
4+
45
toolchain go1.24.1
56

67
require (
@@ -12,7 +13,6 @@ require (
1213
github.com/schollz/progressbar/v3 v3.17.1
1314
github.com/stretchr/testify v1.10.0
1415
github.com/urfave/cli/v2 v2.27.5
15-
golang.org/x/exp v0.0.0-20241217172543-b2144cdd0a67
1616
golang.org/x/sync v0.11.0
1717
)
1818

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk
4545
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
4646
golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU=
4747
golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs=
48-
golang.org/x/exp v0.0.0-20241217172543-b2144cdd0a67 h1:1UoZQm6f0P/ZO0w1Ri+f+ifG/gXhegadRdwBIXEFWDo=
49-
golang.org/x/exp v0.0.0-20241217172543-b2144cdd0a67/go.mod h1:qj5a5QZpwLU2NLQudwIN5koi3beDhSAlJwa67PuM98c=
5048
golang.org/x/image v0.10.0/go.mod h1:jtrku+n79PfroUbvDdeUWMAI+heR786BofxrbiSF+J0=
5149
golang.org/x/image v0.23.0 h1:HseQ7c2OpPKTPVzNjG5fwJsOTCiiwS4QdsYi5XU6H68=
5250
golang.org/x/image v0.23.0/go.mod h1:wJJBTdLfCCf3tiHa1fNxpZmUI4mmoZvwMCPP0ddoNKY=

internal/handlers.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package internal
33
import (
44
"fmt"
55
"log/slog"
6+
"maps"
67
"net/http"
78
"net/http/pprof"
89
"net/url"
@@ -13,7 +14,6 @@ import (
1314
"github.com/alxarno/tinytune/pkg/httputil"
1415
"github.com/alxarno/tinytune/pkg/index"
1516
"github.com/justinas/alice"
16-
"golang.org/x/exp/maps"
1717
)
1818

1919
type PageData struct {
@@ -40,9 +40,7 @@ func logWriteErr(_ int, err error) {
4040
}
4141

4242
func applyCookies(r *http.Request, data PageData) PageData {
43-
sorts := maps.Keys(getSorts())
44-
slices.Sort(sorts)
45-
data.Sorts = sorts
43+
data.Sorts = slices.Sorted(maps.Keys(getSorts()))
4644

4745
if cookie, err := r.Cookie("zoom"); err == nil {
4846
data.Zoom = cookie.Value

0 commit comments

Comments
 (0)