Skip to content

Commit

Permalink
remove unnecessary returns
Browse files Browse the repository at this point in the history
  • Loading branch information
chris124567 committed Sep 25, 2024
1 parent a2cf0c3 commit 3e66946
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions api/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ func (asr AutopilotStateResponse) PrometheusMetric() (metrics []prometheus.Metri
Value: float64(time.Time(asr.ScanningLastStart).Unix()),
},
}
return
}

func (b Bucket) PrometheusMetric() (metrics []prometheus.Metric) {
Expand All @@ -95,7 +94,6 @@ func (b Bucket) PrometheusMetric() (metrics []prometheus.Metric) {
},
Value: 1,
}}
return
}

func (host Host) PrometheusMetric() (metrics []prometheus.Metric) {
Expand Down Expand Up @@ -762,7 +760,6 @@ func (m DownloadStatsResponse) PrometheusMetric() (metrics []prometheus.Metric)
Name: "renterd_worker_stats_numdownloaders",
Value: float64(m.NumDownloaders),
}}
return
}

func (m UploadStatsResponse) PrometheusMetric() (metrics []prometheus.Metric) {
Expand All @@ -783,7 +780,6 @@ func (m UploadStatsResponse) PrometheusMetric() (metrics []prometheus.Metric) {
Name: "renterd_worker_stats_numuploaders",
Value: float64(m.NumUploaders),
}}
return
}

// AllowListResp represents multiple `typex.PublicKey`s. Its prometheus
Expand Down

0 comments on commit 3e66946

Please sign in to comment.