Skip to content

Commit

Permalink
[chore] [receiver/file] enable exhaustive lint (#25180)
Browse files Browse the repository at this point in the history
**Description:** 
related #23266

Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
  • Loading branch information
fatsheep9146 authored Aug 13, 2023
1 parent 1c5e83f commit c070fd9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions receiver/filereceiver/file_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ func getFirstTimestamp(metrics pmetric.Metrics) pcommon.Timestamp {
}

func getFirstTimestampFromMetric(metric pmetric.Metric) pcommon.Timestamp {
//exhaustive:enforce
switch metric.Type() {
case pmetric.MetricTypeGauge:
dps := metric.Gauge().DataPoints()
Expand Down

0 comments on commit c070fd9

Please sign in to comment.