Skip to content

Commit

Permalink
fix linter error with new golancilint version
Browse files Browse the repository at this point in the history
  • Loading branch information
d-rk committed Aug 14, 2024
1 parent b8037a5 commit 263498e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type ConsumerGroupOffsetOperation struct {

func (operation *ConsumerGroupOffsetOperation) ResetConsumerGroupOffset(flags ResetConsumerGroupOffsetFlags, groupName string) error {

if (flags.Topic == nil || len(flags.Topic) == 0) && (!flags.AllTopics) {
if (len(flags.Topic) == 0) && (!flags.AllTopics) {
return errors.New("no topic specified")
}

Expand Down
2 changes: 1 addition & 1 deletion internal/producer/producer-operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func (operation *Operation) Produce(topic string, flags Flags) error {
}

if inputMessage, err = inputParser.ParseLine(line); err != nil {
return failWithMessageCount(messageCount, err.Error())
return failWithMessageCount(messageCount, err.Error()) //nolint:govet
}

messageCount++
Expand Down

0 comments on commit 263498e

Please sign in to comment.