Skip to content

Commit d5632ce

Browse files
committed
Add hints from lint
1 parent 2882fc7 commit d5632ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stacktrace_processor.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func (s *stackTraceProcessor) ConsumeSpan(span ptrace.Span) {
100100

101101
func (s *stackTraceProcessor) ConsumeException(event ptrace.SpanEvent) {
102102
stacktrace, valid := event.Attributes().Get("exception.stacktrace")
103-
if valid != true {
103+
if !valid {
104104
return
105105
}
106106
var res []string
@@ -136,7 +136,7 @@ func (s *stackTraceProcessor) ConsumeException(event ptrace.SpanEvent) {
136136
}
137137

138138
finalFile, _, sourceLine, sourceColumn, ok := smap.Source(mapLine, mapColumn)
139-
if ok != true {
139+
if !ok {
140140
res = append(res, line)
141141
continue
142142
}

0 commit comments

Comments
 (0)