Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
Usage stats reporter: fix to remove duplicate if block (#483)
Browse files Browse the repository at this point in the history
Remove duplicate if statement.
  • Loading branch information
cristiangreco authored Jan 18, 2023
1 parent 2f03659 commit d189198
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/usagestats/reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,6 @@ func (rep *Reporter) readSeedFile(ctx context.Context) (ClusterSeed, error) {
if err != nil {
return ClusterSeed{}, err
}
if err != nil {
return ClusterSeed{}, err
}
defer func() {
if err := reader.Close(); err != nil {
level.Error(rep.logger).Log("msg", "failed to close reader", "err", err)
Expand Down

0 comments on commit d189198

Please sign in to comment.