Skip to content

Commit

Permalink
go fmt of files
Browse files Browse the repository at this point in the history
  • Loading branch information
galen0624 committed Sep 20, 2018
1 parent da67268 commit 8920153
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
5 changes: 1 addition & 4 deletions proxy/http_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ import (
"github.com/pascaldekloe/goe/verify"
)


const (
// helper constants for the Lookup function
globEnabled = false
globEnabled = false
globDisabled = true
)

Expand Down Expand Up @@ -705,8 +704,6 @@ func BenchmarkProxyLogger(b *testing.B) {
b.Fatal("logger.NewHTTPLogger:", err)
}



proxy := &HTTPProxy{
Config: config.Proxy{
LocalIP: "1.1.1.1",
Expand Down
1 change: 0 additions & 1 deletion route/issue57_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ func TestIssue57(t *testing.T) {
route del svcb`,
}


req := &http.Request{URL: mustParse("/foo")}
want := "http://foo.com:800"

Expand Down
3 changes: 1 addition & 2 deletions route/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ func normalizeHost(host string, tls bool) string {

// matchingHosts returns all keys (host name patterns) from the
// routing table which match the normalized request hostname.
func (t Table) matchingHosts(req *http.Request,) (hosts []string) {
func (t Table) matchingHosts(req *http.Request) (hosts []string) {
host := normalizeHost(req.Host, req.TLS != nil)
for pattern := range t {
normpat := normalizeHost(pattern, req.TLS != nil)
Expand Down Expand Up @@ -329,7 +329,6 @@ func (t Table) matchingHosts(req *http.Request,) (hosts []string) {
return
}


// Issue 548 - Added separate func
//
// matchingHostNoGlob returns the route from the
Expand Down
10 changes: 5 additions & 5 deletions route/table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

const (
// helper constants for the Lookup function
globEnabled = false
globEnabled = false
globDisabled = true
)

Expand Down Expand Up @@ -505,8 +505,8 @@ func TestTableLookupIssue448(t *testing.T) {
}

var tests = []struct {
req *http.Request
dst string
req *http.Request
dst string
globEnabled bool
}{
{
Expand Down Expand Up @@ -587,8 +587,8 @@ func TestTableLookup(t *testing.T) {
}

var tests = []struct {
req *http.Request
dst string
req *http.Request
dst string
globEnabled bool
}{
// match on host and path with and without trailing slash
Expand Down

0 comments on commit 8920153

Please sign in to comment.