mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-06 04:09:40 -06:00
fix sonar smells
This commit is contained in:
@@ -49,15 +49,9 @@ func New() *Metrics {
|
||||
}, []string{"versions"}),
|
||||
}
|
||||
|
||||
prometheus.Register(m.Counter)
|
||||
prometheus.Register(m.Latency)
|
||||
prometheus.Register(m.Duration)
|
||||
prometheus.Register(m.BuildInfo)
|
||||
_ = prometheus.Register(m.Counter)
|
||||
_ = prometheus.Register(m.Latency)
|
||||
_ = prometheus.Register(m.Duration)
|
||||
_ = prometheus.Register(m.BuildInfo)
|
||||
return m
|
||||
}
|
||||
|
||||
func mustNotFail(err error) {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user