mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-11 15:36:37 +00:00
chore: Refactor Config Collector API (#1558)
This commit is contained in:
@@ -20,3 +20,7 @@ func HasValue(v *string) bool {
|
||||
func IsEmpty(v *string) bool {
|
||||
return v == nil || *v == ""
|
||||
}
|
||||
|
||||
func ToPTR[t any](v t) *t {
|
||||
return &v
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user