gofmt
This commit is contained in:
parent
c1116ea506
commit
c5fc7baa86
@ -3,11 +3,11 @@ package providers
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/bitly/go-simplejson"
|
||||
"github.com/bitly/oauth2_proxy/api"
|
||||
"log"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"github.com/bitly/go-simplejson"
|
||||
)
|
||||
|
||||
type AzureProvider struct {
|
||||
@ -74,14 +74,14 @@ func getEmailFromJSON(json *simplejson.Json) (string, error) {
|
||||
|
||||
if err != nil || email == "" {
|
||||
otherMails, otherMailsErr := json.Get("otherMails").Array()
|
||||
if len(otherMails) > 0{
|
||||
if len(otherMails) > 0 {
|
||||
email = otherMails[0].(string)
|
||||
}
|
||||
err = otherMailsErr
|
||||
}
|
||||
|
||||
return email, err
|
||||
}
|
||||
}
|
||||
|
||||
func (p *AzureProvider) GetEmailAddress(s *SessionState) (string, error) {
|
||||
var email string
|
||||
|
Loading…
Reference in New Issue
Block a user