Skip to content

Commit

Permalink
[chore] remove extra else, makes linter unhappy (open-telemetry#38436)
Browse files Browse the repository at this point in the history
This unblocks
open-telemetry#38013
  • Loading branch information
atoulme authored Mar 6, 2025
1 parent 14de63f commit 4abf37a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/stanza/fileconsumer/internal/reader/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ func (r *Reader) ReadToEnd(ctx context.Context) {
r.set.Logger.Error("failed to create gzip reader", zap.Error(err))
}
return
} else {
r.reader = gzipReader
}
r.reader = gzipReader
// Offset tracking in an uncompressed file is based on the length of emitted tokens, but in this case
// we need to set the offset to the end of the file.
defer func() {
Expand Down

0 comments on commit 4abf37a

Please sign in to comment.