forked from remote/oauth2
Avoid concatenating scope literals.
This commit is contained in:
@@ -3,8 +3,6 @@
|
||||
package google
|
||||
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/golang/oauth2"
|
||||
|
||||
"appengine"
|
||||
@@ -43,7 +41,7 @@ func (c *AppEngineConfig) NewTransport() oauth2.Transport {
|
||||
|
||||
// FetchToken fetches a new access token for the provided scopes.
|
||||
func (c *AppEngineConfig) FetchToken(existing *oauth2.Token) (*oauth2.Token, error) {
|
||||
token, expiry, err := appengine.AccessToken(c.context, strings.Join(c.scopes, " "))
|
||||
token, expiry, err := appengine.AccessToken(c.context, c.scopes...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user