Skip to content

Commit b7c4ccf

Browse files
committed
Fixed typo
Signed-off-by: Vishal Rana <[email protected]>
1 parent 1678da5 commit b7c4ccf

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

echo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ const (
213213
)
214214

215215
const (
216-
version = "3.2.1"
216+
version = "3.2.3"
217217
website = "https://echo.labstack.com"
218218
// http://patorjk.com/software/taag/#p=display&f=Small%20Slant&t=Echo
219219
banner = `

middleware/body_limit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type (
3030
)
3131

3232
var (
33-
// DefaultBodyLimitConfig is the default Gzip middleware config.
33+
// DefaultBodyLimitConfig is the default BodyLimit middleware config.
3434
DefaultBodyLimitConfig = BodyLimitConfig{
3535
Skipper: DefaultSkipper,
3636
}

middleware/recover.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,13 @@ func RecoverWithConfig(config RecoverConfig) echo.MiddlewareFunc {
5757
}
5858

5959
return func(next echo.HandlerFunc) echo.HandlerFunc {
60-
return func(c echo.Context) error {
60+
return func(c echo.Context) (err error) {
6161
if config.Skipper(c) {
6262
return next(c)
6363
}
6464

6565
defer func() {
6666
if r := recover(); r != nil {
67-
var err error
6867
switch r := r.(type) {
6968
case error:
7069
err = r

0 commit comments

Comments
 (0)