Skip to content

Extract mapSliceError into rivershared sliceutil.MapError function#942

Merged
brandur merged 1 commit into
masterfrom
brandur-map-error
Jun 4, 2025
Merged

Extract mapSliceError into rivershared sliceutil.MapError function#942
brandur merged 1 commit into
masterfrom
brandur-map-error

Conversation

@brandur

@brandur brandur commented Jun 4, 2025

Copy link
Copy Markdown
Contributor

I just noticed that we end up redefining mapSliceError in every
driver. Here, extract it into rivershared as sliceutil.MapError so
it can be reused everywhere. It's a good time to do this anyway because
we're about to have a mandatory update across project boundaries so Pro
will be able to get access to it too.

I just noticed that we end up redefining `mapSliceError` in every
driver. Here, extract it into `rivershared` as `sliceutil.MapError` so
it can be reused everywhere. It's a good time to do this anyway because
we're about to have a mandatory update across project boundaries so Pro
will be able to get access to it too.
@brandur brandur requested a review from bgentry June 4, 2025 05:38
@brandur

brandur commented Jun 4, 2025

Copy link
Copy Markdown
Contributor Author

Thx.

@brandur brandur merged commit 8a6217a into master Jun 4, 2025
19 of 20 checks passed
@brandur brandur deleted the brandur-map-error branch June 4, 2025 15:03
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