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:
parent
c040dd2a1d
commit
8ad6a7e2d2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue