Skip to content

Commit 440b7e7

Browse files
authored
docs: fix code error middleware-auth.md
1 parent 7527d1e commit 440b7e7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/openapi-fetch/middleware-auth.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ const myMiddleware: Middleware = {
2929
},
3030
async onError({ error }) {
3131
// wrap errors thrown by fetch
32-
onError({ error }) {
33-
return new Error("Oops, fetch failed", { cause: error });
34-
},
32+
return new Error("Oops, fetch failed", { cause: error });
3533
},
3634
};
3735

0 commit comments

Comments
 (0)