Skip to content

Commit

Permalink
[chore] fix exhaustive lint for googlecloudpubsub receiver (#23890)
Browse files Browse the repository at this point in the history
**Description:** 
related #23266

Signed-off-by: Ziqi Zhao <[email protected]>
  • Loading branch information
fatsheep9146 authored Jul 6, 2023
1 parent 2b58e23 commit edad710
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,6 @@ issues:
- path: fluentforwardreceiver
linters:
- exhaustive
- path: googlecloudpubsubreceiver
linters:
- exhaustive
- path: googlecloudspannerreceiver
linters:
- exhaustive
Expand Down
2 changes: 2 additions & 0 deletions receiver/googlecloudpubsubreceiver/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ func (receiver *pubsubReceiver) createReceiverHandler(ctx context.Context) error
}
case rawTextLog:
return receiver.handleLogStrings(ctx, message)
case unknown:
return errors.New("unknown encoding")
}
return errors.New("unknown encoding")
})
Expand Down

0 comments on commit edad710

Please sign in to comment.