Skip to content

Commit

Permalink
lowercased some local variables again
Browse files Browse the repository at this point in the history
  • Loading branch information
akavel committed May 20, 2012
1 parent 0c7e1ab commit f4294c8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions authrequest.go
Expand Up @@ -33,30 +33,30 @@ const (
identifierURL
)

func GetRedirectURL(Identifier string, realm string, returnto string) (string, error) {
func GetRedirectURL(identifier string, realm string, returnto string) (string, error) {
var err error
var Id, IdType = normalizeIdentifier(Identifier)
var id, idType = normalizeIdentifier(identifier)

// If the identifier is an XRI, [XRI_Resolution_2.0] will yield an XRDS document
// that contains the necessary information. It should also be noted that Relying
// Parties can take advantage of XRI Proxy Resolvers, such as the one provided by
// XDI.org at http://www.xri.net. This will remove the need for the RPs to perform
// XRI Resolution locally.
if IdType == identifierXRI {
if idType == identifierXRI {
// Not implemented yet
return "", errors.New("XRI identifier not implemented yet")
}

// If it is a URL, the Yadis protocol [Yadis] SHALL be first attempted. If it succeeds,
// the result is again an XRDS document.
if IdType == identifierURL {
if idType == identifierURL {
var reader io.Reader
reader, err = Yadis(Id)
reader, err = Yadis(id)
if err != nil {
return "", err
}
if reader == nil {
return "", errors.New("Yadis returned an empty Reader for the ID: " + Id)
return "", errors.New("Yadis returned an empty Reader for the ID: " + id)
}

var endpoint, claimedid = ParseXRDS(reader)
Expand Down

0 comments on commit f4294c8

Please sign in to comment.