Remove unused `stsCredentials` field from LambdaFunctionHandler by Copilot · Pull Request #159 · networknt/light-aws-lambda · GitHub
Skip to content

Remove unused stsCredentials field from LambdaFunctionHandler#159

Closed
Copilot wants to merge 2 commits into
issue154from
copilot/sub-pr-155-yet-again
Closed

Remove unused stsCredentials field from LambdaFunctionHandler#159
Copilot wants to merge 2 commits into
issue154from
copilot/sub-pr-155-yet-again

Conversation

Copilot AI commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

stsCredentials was assigned in initClient() but never read, introducing dead state that could mislead future maintainers.

Changes

  • Removed private Credentials stsCredentials field declaration
  • Removed stsCredentials = credentials assignment in initClient()

credentialsExpiration is retained — it is actively consumed by refreshCredentialsIfNeeded() to drive credential rotation logic.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: stevehu <2042337+stevehu@users.noreply.github.com>

Copilot AI commented Mar 20, 2026

Copy link
Copy Markdown
Contributor Author

Copilot AI changed the title [WIP] [WIP] Address feedback on AWS STS support in lambda invoker PR #154 Remove unused stsCredentials field from LambdaFunctionHandler Mar 20, 2026
Copilot AI requested a review from stevehu March 20, 2026 13:14
@stevehu

stevehu commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

@stevehu stevehu closed this Mar 20, 2026
@stevehu stevehu deleted the copilot/sub-pr-155-yet-again branch March 20, 2026 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants