Skip to content

Commit e8ffc2e

Browse files
committed
Un-gofmt ./vendor
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)
1 parent b68ddce commit e8ffc2e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

vendor/src/github.com/gorilla/context/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func Purge(maxAge int) int {
9292
datat = make(map[*http.Request]int64)
9393
} else {
9494
min := time.Now().Unix() - int64(maxAge)
95-
for r := range data {
95+
for r, _ := range data {
9696
if datat[r] < min {
9797
clear(r)
9898
count++

vendor/src/github.com/gorilla/mux/old_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ func TestRouteMatchers(t *testing.T) {
9696
method = "GET"
9797
headers = map[string]string{"X-Requested-With": "XMLHttpRequest"}
9898
resultVars = map[bool]map[string]string{
99-
true: {"var1": "www", "var2": "product", "var3": "42"},
100-
false: {},
99+
true: map[string]string{"var1": "www", "var2": "product", "var3": "42"},
100+
false: map[string]string{},
101101
}
102102
}
103103

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

0 commit comments

Comments
 (0)