Skip to content

Commit ca14a4f

Browse files
committed
Remove bare returns
1 parent f91437c commit ca14a4f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

path_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func genLongPaths() (testPaths []cleanPathTest) {
120120
result: correctPath,
121121
})
122122
}
123-
return
123+
return testPaths
124124
}
125125

126126
func TestPathCleanLong(t *testing.T) {

router.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,8 @@ func (r *Router) allowed(path, reqMethod string) (allow string) {
453453
// return as comma separated list
454454
return strings.Join(allowed, ", ")
455455
}
456-
return
456+
457+
return allow
457458
}
458459

459460
// ServeHTTP makes the router implement the http.Handler interface.

0 commit comments

Comments
 (0)