Skip to content

ref(minidump): Use get instead of indexing#5974

Draft
elramen wants to merge 1 commit into
masterfrom
elramen-indexing
Draft

ref(minidump): Use get instead of indexing#5974
elramen wants to merge 1 commit into
masterfrom
elramen-indexing

Conversation

@elramen
Copy link
Copy Markdown
Member

@elramen elramen commented May 11, 2026

Use get instead of indexing to access the minidump item. Follow up for https://github.com/getsentry/relay/pull/5950/changes#r3207341577.


let minidump_item = items
.get(minidump_idx)
.ok_or(BadStoreRequest::MissingMinidump)?;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Shouldn't every ? in this function call .reject(&items)? You can change the return type of the function to Result<_, Rejected<_>> to force this.

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