Remove unnecessarily named return variables
Named return variables should only be used to describe the returned type further, e.g. `err error` doesn't add any new information and is just stutter.
This commit is contained in:
parent
084e585c2a
commit
922e74d58f
32 changed files with 54 additions and 56 deletions
|
|
@ -32,7 +32,7 @@ func warnDeprecated(collector string) {
|
|||
// Collector is the interface a collector has to implement.
|
||||
type Collector interface {
|
||||
// Get new metrics and expose them via prometheus registry.
|
||||
Update(ch chan<- prometheus.Metric) (err error)
|
||||
Update(ch chan<- prometheus.Metric) error
|
||||
}
|
||||
|
||||
type typedDesc struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue