Skip to content

Commit 45a7b06

Browse files
committed
fix lint error
1 parent 86f9577 commit 45a7b06

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

middleware/cache/cache_test.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -925,9 +925,7 @@ func Test_Cache_UncacheableStatusCodes(t *testing.T) {
925925

926926
app.Get("/:statusCode", func(c fiber.Ctx) error {
927927
statusCode, err := strconv.Atoi(c.Params("statusCode"))
928-
if err != nil {
929-
return err
930-
}
928+
require.NoError(t, err)
931929
return c.Status(statusCode).SendString("foo")
932930
})
933931

0 commit comments

Comments
 (0)