1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-12-03 09:45:19 +02:00

updated linter

This commit is contained in:
Gani Georgiev
2022-12-16 17:06:03 +02:00
parent 738f71f244
commit 687a79b450
7 changed files with 14 additions and 12 deletions

View File

@@ -2,7 +2,7 @@ package auth
import (
"encoding/json"
"io/ioutil"
"io"
"strconv"
"golang.org/x/oauth2"
@@ -75,7 +75,7 @@ func (p *Github) FetchAuthUser(token *oauth2.Token) (*AuthUser, error) {
}
defer response.Body.Close()
content, err := ioutil.ReadAll(response.Body)
content, err := io.ReadAll(response.Body)
if err != nil {
return user, err
}