Removed warnings from go staticcheck

This commit is contained in:
gezimbll
2023-11-03 12:20:48 -04:00
committed by Dan Christian Bogos
parent 529430bd4d
commit c2dacc42c1
97 changed files with 334 additions and 761 deletions

View File

@@ -36,6 +36,7 @@ import (
"golang.org/x/net/context"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"
"google.golang.org/api/option"
"google.golang.org/api/sheets/v4"
)
@@ -804,7 +805,7 @@ func newSheet() (sht *sheets.Service, err error) { //*google_api
if err != nil {
return nil, err
}
sht, err = sheets.New(client)
sht, err = sheets.NewService(context.Background(), option.WithHTTPClient(client))
if err != nil {
err = fmt.Errorf("Unable to retrieve Sheets client: %v", err)
}