mirror of
https://gitlab.durp.info/durfy/apps/durpot.git
synced 2026-05-08 16:31:23 -05:00
fix lint
This commit is contained in:
parent
b2b50d303b
commit
36d2a725e5
3 changed files with 8 additions and 4 deletions
|
|
@ -3,7 +3,7 @@ package handlers
|
|||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
|
|
@ -28,7 +28,7 @@ func CallDurpAPI(url string, accesstoken string) []byte {
|
|||
}
|
||||
defer resp.Body.Close()
|
||||
|
||||
body, err := ioutil.ReadAll(resp.Body)
|
||||
body, err := io.ReadAll(resp.Body)
|
||||
if err != nil {
|
||||
fmt.Println("Error reading response:", err)
|
||||
return nil
|
||||
|
|
@ -58,7 +58,7 @@ func GenerateToken(clientID string, grantType string, url string, username strin
|
|||
}
|
||||
defer resp.Body.Close()
|
||||
|
||||
body, err := ioutil.ReadAll(resp.Body)
|
||||
body, err := io.ReadAll(resp.Body)
|
||||
if err != nil {
|
||||
fmt.Println("Error reading response:", err)
|
||||
return model.AccessTokenResponse{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue