Skip to content

Commit

Permalink
add nolint
Browse files Browse the repository at this point in the history
  • Loading branch information
khushijain21 committed Nov 28, 2024
1 parent 5d2fdc7 commit 89ef7a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbeat/outputs/kafka/partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (p *messagePartitioner) Partition(

partition, err := p.p(msg, numPartitions)
if err != nil {
return 0, nil //nolint:errorlint
return 0, nil //nolint:nilerr

Check failure on line 132 in libbeat/outputs/kafka/partition.go

View workflow job for this annotation

GitHub Actions / lint (windows)

directive `//nolint:nilerr` should provide explanation such as `//nolint:nilerr // this is why` (nolintlint)
}

msg.partition = partition
Expand Down

0 comments on commit 89ef7a8

Please sign in to comment.