Skip to content

Commit

Permalink
tidy: gofmt -w -s .
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeneas Rekkas (arekkas) committed Dec 19, 2016
1 parent a440022 commit 78f0b62
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 19 deletions.
10 changes: 5 additions & 5 deletions client/manager_test.go
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
package client_test

import (
"net/http/httptest"
"net/url"
"testing"
r "gopkg.in/dancannon/gorethink.v2"
"log"
"net/http/httptest"
"net/url"
"os"
"testing"
"time"

"fmt"
"github.com/julienschmidt/httprouter"
_ "github.com/lib/pq"
"github.com/ory-am/fosite"
. "github.com/ory-am/hydra/client"
_ "github.com/lib/pq"
"github.com/ory-am/hydra/compose"
"github.com/ory-am/hydra/herodot"
"github.com/ory-am/hydra/integration"
"github.com/ory-am/hydra/pkg"
"github.com/ory-am/ladon"
"github.com/pborman/uuid"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"golang.org/x/net/context"
"gopkg.in/ory-am/dockertest.v3"
"github.com/ory-am/hydra/integration"
)

var clientManagers = map[string]Storage{}
Expand Down
2 changes: 1 addition & 1 deletion cmd/cli/handler_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (

"strings"

"github.com/Sirupsen/logrus"
"github.com/ory-am/hydra/client"
"github.com/ory-am/hydra/config"
"github.com/ory-am/hydra/pkg"
"github.com/spf13/cobra"
"github.com/Sirupsen/logrus"
)

type ClientHandler struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/cli/handler_recovation.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package cli

import (
"context"
"crypto/tls"
"fmt"
"github.com/ory-am/hydra/config"
"github.com/ory-am/hydra/oauth2"
"github.com/ory-am/hydra/pkg"
"github.com/spf13/cobra"
"golang.org/x/oauth2/clientcredentials"
"crypto/tls"
"net/http"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"os"
"strings"

"github.com/spf13/cobra"
"github.com/Sirupsen/logrus"
"github.com/spf13/cobra"
)

// connectCmd represents the connect command
Expand Down
2 changes: 1 addition & 1 deletion integration/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"time"

"fmt"
_ "github.com/go-sql-driver/mysql"
"github.com/jmoiron/sqlx"
_ "github.com/lib/pq"
_ "github.com/go-sql-driver/mysql"
"gopkg.in/ory-am/dockertest.v3"
"gopkg.in/redis.v5"
)
Expand Down
16 changes: 8 additions & 8 deletions jwk/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@ import (
"net/url"
"testing"

"crypto/rand"
"fmt"
"github.com/julienschmidt/httprouter"
"github.com/ory-am/fosite"
"github.com/ory-am/hydra/compose"
"github.com/ory-am/hydra/herodot"
"github.com/ory-am/hydra/integration"
. "github.com/ory-am/hydra/jwk"
"github.com/ory-am/hydra/pkg"
"github.com/ory-am/ladon"
"github.com/stretchr/testify/assert"
r "gopkg.in/dancannon/gorethink.v2"
"log"
"os"
"time"
"crypto/rand"
"fmt"
"github.com/pkg/errors"
"github.com/square/go-jose"
"github.com/stretchr/testify/assert"
"golang.org/x/net/context"
r "gopkg.in/dancannon/gorethink.v2"
"io"
"log"
"net/http"
"github.com/ory-am/hydra/integration"
"os"
"time"
)

var managers = map[string]Manager{}
Expand Down
2 changes: 1 addition & 1 deletion oauth2/fosite_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import (
c "github.com/ory-am/common/pkg"
"github.com/ory-am/fosite"
"github.com/ory-am/hydra/client"
"github.com/ory-am/hydra/integration"
"github.com/ory-am/hydra/pkg"
"github.com/pborman/uuid"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"golang.org/x/net/context"
r "gopkg.in/dancannon/gorethink.v2"
"github.com/ory-am/hydra/integration"
)

var rethinkManager *FositeRehinkDBStore
Expand Down
2 changes: 1 addition & 1 deletion oauth2/revocator_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type HTTPRecovator struct {
Config *clientcredentials.Config
Dry bool
Endpoint *url.URL
Client *http.Client
Client *http.Client
}

func (r *HTTPRecovator) RevokeToken(ctx context.Context, token string) error {
Expand Down

0 comments on commit 78f0b62

Please sign in to comment.