mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-05-19 06:29:53 +00: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:
@@ -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