Skip to content

[chore] pkg/stanza: use unsafe.Add to fix modernize lint#45425

Merged
dmitryax merged 1 commit into
open-telemetry:mainfrom
axw:stanza-unsafe-add
Jan 15, 2026
Merged

[chore] pkg/stanza: use unsafe.Add to fix modernize lint#45425
dmitryax merged 1 commit into
open-telemetry:mainfrom
axw:stanza-unsafe-add

Conversation

@axw
Copy link
Copy Markdown
Contributor

@axw axw commented Jan 15, 2026

Description

See https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/21018188720/job/60427729281?pr=45308

Error: pkg/stanza/operator/input/windows/event.go:66:27: unsafefuncs: pointer + integer can be simplified using unsafe.Add (modernize)

Link to tracking issue

None

Testing

Unit tests

Documentation

None

@axw axw marked this pull request as ready for review January 15, 2026 04:54
@axw axw requested review from a team and andrzej-stencel as code owners January 15, 2026 04:54
@dmitryax dmitryax merged commit 4891724 into open-telemetry:main Jan 15, 2026
198 checks passed
@github-actions github-actions Bot added this to the next release milestone Jan 15, 2026
@axw axw deleted the stanza-unsafe-add branch January 15, 2026 05:25
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.

3 participants