Skip to content

Commit

Permalink
added a nolint: gosec to fix memory aliasing alert
Browse files Browse the repository at this point in the history
  • Loading branch information
maurafortino committed Sep 20, 2023
1 parent e9895a0 commit 7611af0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions primaryHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ func NewPrimaryHandler(logger *zap.Logger, v *viper.Viper, registry xmetrics.Reg
// nolint:errorlint
if headerer, ok := err.(gokithttp.Headerer); ok {
for k, values := range headerer.Headers() {
// nolint: gosec

Check warning on line 334 in primaryHandler.go

View check run for this annotation

Codecov / codecov/patch

primaryHandler.go#L334

Added line #L334 was not covered by tests
for _, v := range values {
w.Header().Add(k, v)
}
Expand Down

0 comments on commit 7611af0

Please sign in to comment.