From 8ad6a7e2d20fa1d1cd1fa20b82afb3dda3628e6e Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Wed, 4 Dec 2024 13:13:45 +0100 Subject: [PATCH] Simplify type of getJSON. --- galenectl/galenectl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galenectl/galenectl.go b/galenectl/galenectl.go index 57375da..cdddde7 100644 --- a/galenectl/galenectl.go +++ b/galenectl/galenectl.go @@ -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) if err != nil { return "", err