mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-14 00:46:35 +00:00
*: avoid using default wmi client. (#1590)
This commit is contained in:
@@ -13,10 +13,6 @@ func BoolToFloat(b bool) float64 {
|
||||
return 0.0
|
||||
}
|
||||
|
||||
func HasValue(v *string) bool {
|
||||
return !IsEmpty(v)
|
||||
}
|
||||
|
||||
func IsEmpty(v *string) bool {
|
||||
return v == nil || *v == ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user