Skip to content

Commit 6abafe7

Browse files
committed
lint fix unused var
1 parent 17f2c31 commit 6abafe7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ export default class GraphQLComponent<TContextType extends ComponentContext = Co
250250

251251
// Apply middleware more efficiently
252252
if (this._middleware.length > 0) {
253-
for (const { name, fn } of this._middleware) {
254-
processedContext = await fn(processedContext);
253+
for (const mw of this._middleware) {
254+
processedContext = await mw.fn(processedContext);
255255
}
256256
}
257257

0 commit comments

Comments
 (0)