Skip to content

fix: lazy allocation on error case - #937

Merged
Its-Just-Nans merged 2 commits into
masterfrom
lazy-error
Aug 16, 2026
Merged

Its-Just-Nans merged 2 commits into
masterfrom
lazy-error

Conversation

@Its-Just-Nans

Copy link
Copy Markdown
Member

@amazon-q-developer amazon-q-developer Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR correctly optimizes error handling by replacing ok_or() with ok_or_else() to defer error message construction until actually needed. The changes improve performance in the happy path without introducing any functional defects or security issues. The implementation is correct and ready to merge.


You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.

@Its-Just-Nans
Its-Just-Nans added this pull request to the merge queue Aug 16, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 16, 2026
@Its-Just-Nans
Its-Just-Nans added this pull request to the merge queue Aug 16, 2026
Merged via the queue into master with commit 1384049 Aug 16, 2026
134 checks passed
@Its-Just-Nans
Its-Just-Nans deleted the lazy-error branch August 16, 2026 19:18
This was referenced Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant