Remove more unnecessarily named return values
This commit is contained in:
parent
5c28ab044d
commit
84eaa8fecd
4 changed files with 6 additions and 8 deletions
|
|
@ -124,7 +124,7 @@ func NewDevstatCollector() (Collector, error) {
|
|||
}, nil
|
||||
}
|
||||
|
||||
func (c *devstatCollector) Update(ch chan<- prometheus.Metric) (err error) {
|
||||
func (c *devstatCollector) Update(ch chan<- prometheus.Metric) error {
|
||||
count := C._get_ndevs()
|
||||
if count == -1 {
|
||||
return errors.New("getdevs() failed")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue