Remove named return values.

This commit is contained in:
Burcu Dogan
2014-07-20 21:07:57 -07:00
parent 70bd497612
commit 4ad15bb1fc
2 changed files with 9 additions and 7 deletions

5
jwt.go
View File

@@ -42,10 +42,11 @@ type JWTOptions struct {
// NewJWTConfig creates a new configuration with the specified options
// and OAuth2 provider endpoint.
func NewJWTConfig(opts *JWTOptions, aud string) (conf *JWTConfig, err error) {
func NewJWTConfig(opts *JWTOptions, aud string) (*JWTConfig, error) {
var audURL *url.URL
var err error
if audURL, err = url.Parse(aud); err != nil {
return
return nil, err
}
contents, err := ioutil.ReadFile(opts.PemFilename)
if err != nil {