Skip to content

Commit 267b199

Browse files
committed
PR feedback.
1 parent d04038b commit 267b199

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

go/internal/otel/custom_sampler.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,8 @@ func matchLogValue(v log.Value, matchValue interface{}, cs *CustomSampler) bool
255255
return false
256256
}
257257
for i := range asSlice {
258-
for j := range v.AsSlice() {
259-
if !matchesValue(cs, toMatchParts(asSlice[i]), v.AsSlice()[j]) {
260-
return false
261-
}
258+
if !matchesValue(cs, toMatchParts(asSlice[i]), v.AsSlice()[i]) {
259+
return false
262260
}
263261
}
264262
return true

0 commit comments

Comments
 (0)