Skip to content

Commit

Permalink
fix: removing unnecessary pointer checking
Browse files Browse the repository at this point in the history
  • Loading branch information
n.frolov committed Jul 17, 2024
1 parent 2f17e8d commit 5405fb6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions run_loop.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,6 @@ func (s *runLoop) run() {
for _, c := range s.outputs {
c <- m
}
if reflect.ValueOf(m).Kind() == reflect.Pointer {
m = reflect.ValueOf(m).Elem()
}
s.mx.RUnlock()
if s.methods.sink != nil {
s.methods.sink(s.context, m)
Expand Down

0 comments on commit 5405fb6

Please sign in to comment.