Skip to content

Commit

Permalink
filebeat/input/udp: fix inverted nil check logic (#33920)
Browse files Browse the repository at this point in the history
  • Loading branch information
efd6 authored and chrisberkhout committed Jun 1, 2023
1 parent 9930711 commit 7e6f7b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filebeat/input/udp/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func (m *inputMetrics) log(data []byte, timestamp time.Time) {
}

func (m *inputMetrics) close() {
if m != nil {
if m == nil {
return
}
m.unregister()
Expand Down

0 comments on commit 7e6f7b8

Please sign in to comment.