Skip to content

Commit bc5cc2f

Browse files
authored
docs(readme): add missing await while calling next (#2918)
1 parent 0a75f12 commit bc5cc2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ const client = new S3({ region: "us-west-2" });
433433
client.middlewareStack.add(
434434
(next, context) => async (args) => {
435435
args.request.headers["x-amz-meta-foo"] = "bar";
436-
const result = next(args);
436+
const result = await next(args);
437437
// result.response contains data returned from next middleware.
438438
return result;
439439
},

0 commit comments

Comments
 (0)