mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-14 08:39:03 +02:00
chore(deps): update github actions (master) (#2394)
Co-authored-by: Jan-Otto Kröpke <mail@jkroepke.de> Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
co-authored by
Jan-Otto Kröpke
parent
5cdb4cd2f5
commit
3df84dc09b
@@ -309,7 +309,7 @@ func (c *Collector) collectWorkerRaw() {
|
||||
}
|
||||
|
||||
dv := reflect.ValueOf(data)
|
||||
if dv.Kind() != reflect.Ptr || dv.IsNil() {
|
||||
if dv.Kind() != reflect.Pointer || dv.IsNil() {
|
||||
return fmt.Errorf("expected a pointer, got %s: %w", dv.Kind(), mi.ErrInvalidEntityType)
|
||||
}
|
||||
|
||||
@@ -476,7 +476,7 @@ func (c *Collector) collectWorkerFormatted() {
|
||||
}
|
||||
|
||||
dv := reflect.ValueOf(data)
|
||||
if dv.Kind() != reflect.Ptr || dv.IsNil() {
|
||||
if dv.Kind() != reflect.Pointer || dv.IsNil() {
|
||||
return fmt.Errorf("expected a pointer, got %s: %w", dv.Kind(), mi.ErrInvalidEntityType)
|
||||
}
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@ func (c *Collector) Describe() map[string]string {
|
||||
|
||||
func (c *Collector) Collect(data any) error {
|
||||
dv := reflect.ValueOf(data)
|
||||
if dv.Kind() != reflect.Ptr || dv.IsNil() {
|
||||
if dv.Kind() != reflect.Pointer || dv.IsNil() {
|
||||
return mi.ErrInvalidEntityType
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user