From a135448d9803eaac14ed79a6f250dcbd57b6dfee Mon Sep 17 00:00:00 2001 From: George Fu Date: Mon, 12 Aug 2024 11:22:42 -0400 Subject: [PATCH] feat(credential-providers): update example code in readme Co-authored-by: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> --- packages/credential-providers/README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/credential-providers/README.md b/packages/credential-providers/README.md index 1cebec7f81370..5846389323519 100644 --- a/packages/credential-providers/README.md +++ b/packages/credential-providers/README.md @@ -797,9 +797,7 @@ import { S3 } from "@aws-sdk/client-s3"; // and custom async functions returning credential objects. new S3({ credentials: chain(fromEnv(), fromIni(), async () => { - return { - ...myCredentialsFromSomewhereElse, - }; + return myCredentialsFromSomewhereElse; }), });