Skip to content

Commit

Permalink
Un-gofmt ./vendor
Browse files Browse the repository at this point in the history
We can't be modifying this except to update from upstream.

Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
  • Loading branch information
tianon committed Jan 14, 2014
1 parent b68ddce commit e8ffc2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion vendor/src/github.com/gorilla/context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func Purge(maxAge int) int {
datat = make(map[*http.Request]int64)
} else {
min := time.Now().Unix() - int64(maxAge)
for r := range data {
for r, _ := range data {
if datat[r] < min {
clear(r)
count++
Expand Down
8 changes: 4 additions & 4 deletions vendor/src/github.com/gorilla/mux/old_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ func TestRouteMatchers(t *testing.T) {
method = "GET"
headers = map[string]string{"X-Requested-With": "XMLHttpRequest"}
resultVars = map[bool]map[string]string{
true: {"var1": "www", "var2": "product", "var3": "42"},
false: {},
true: map[string]string{"var1": "www", "var2": "product", "var3": "42"},
false: map[string]string{},
}
}

Expand All @@ -110,8 +110,8 @@ func TestRouteMatchers(t *testing.T) {
method = "POST"
headers = map[string]string{"Content-Type": "application/json"}
resultVars = map[bool]map[string]string{
true: {"var4": "google", "var5": "product", "var6": "42"},
false: {},
true: map[string]string{"var4": "google", "var5": "product", "var6": "42"},
false: map[string]string{},
}
}

Expand Down

0 comments on commit e8ffc2e

Please sign in to comment.