mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Removed warnings from go staticcheck
This commit is contained in:
committed by
Dan Christian Bogos
parent
529430bd4d
commit
c2dacc42c1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user