Skip to content

Commit

Permalink
ci: gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeneas Rekkas (arekkas) authored and arekkas committed Nov 22, 2016
1 parent 7d3cb4e commit 17d2434
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions cmd/server/handler_oauth2_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ func newOAuth2Handler(c *config.Config, router *httprouter.Router, km jwk.Manage
DefaultChallengeLifespan: c.GetChallengeTokenLifespan(),
DefaultIDTokenLifespan: c.GetIDTokenLifespan(),
},
ConsentURL: *consentURL,
H: &herodot.JSON{},
AccessTokenLifespan:c.GetAccessTokenLifespan(),
ConsentURL: *consentURL,
H: &herodot.JSON{},
AccessTokenLifespan: c.GetAccessTokenLifespan(),
}

handler.SetRoutes(router)
Expand Down
6 changes: 3 additions & 3 deletions oauth2/handler_consent_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package oauth2

import (
"net/http/httptest"
"net/http"
"io/ioutil"
"github.com/julienschmidt/httprouter"
"github.com/stretchr/testify/assert"
"io/ioutil"
"net/http"
"net/http/httptest"
"testing"
)

Expand Down
8 changes: 4 additions & 4 deletions oauth2/session.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package oauth2

import (
"github.com/ory-am/fosite/handler/openid"
"github.com/ory-am/fosite/token/jwt"
"github.com/ory-am/fosite"
"bytes"
"encoding/gob"
"github.com/ory-am/fosite"
"github.com/ory-am/fosite/handler/openid"
"github.com/ory-am/fosite/token/jwt"
)

type Session struct {
Expand Down Expand Up @@ -35,4 +35,4 @@ func (s *Session) Clone() fosite.Session {
_ = enc.Encode(s)
_ = dec.Decode(&clone)
return &clone
}
}

0 comments on commit 17d2434

Please sign in to comment.