1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 15:25:48 +01:00

Simplify type of getJSON.

This commit is contained in:
Juliusz Chroboczek 2024-12-04 13:13:45 +01:00
parent c040dd2a1d
commit 8ad6a7e2d2

View file

@ -326,7 +326,7 @@ func setAuthorization(req *http.Request) {
} }
} }
func getJSON[T any](url string, value T) (string, error) { func getJSON(url string, value any) (string, error) {
req, err := http.NewRequest("GET", url, nil) req, err := http.NewRequest("GET", url, nil)
if err != nil { if err != nil {
return "", err return "", err