mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-01 02:09:03 +02:00
chore(deps): update dependency golangci/golangci-lint to v2.13.1 (master) (#2477)
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
2743d4e3f7
commit
75b0c11bb4
@@ -265,7 +265,7 @@ func (c *Collector) groupPrintJobs(printJobs []wmiPrintJob) map[PrintJobStatusGr
|
||||
groupedPrintJobs := make(map[PrintJobStatusGroup]int)
|
||||
|
||||
for _, printJob := range printJobs {
|
||||
printerName := strings.Split(printJob.Name, ",")[0]
|
||||
printerName, _, _ := strings.Cut(printJob.Name, ",")
|
||||
|
||||
if c.config.PrinterExclude.MatchString(printerName) ||
|
||||
!c.config.PrinterInclude.MatchString(printerName) {
|
||||
|
||||
Reference in New Issue
Block a user