From 7a495a15b3806ee2cc6674b360a2b6c8d70fbed2 Mon Sep 17 00:00:00 2001 From: Karsten Weiss Date: Fri, 13 Apr 2018 22:44:44 +0200 Subject: [PATCH] Type processCollector: Remove unused field 'pid' Fixes: process_collector.go:19:2: field pid is unused (U1000) Signed-off-by: Karsten Weiss --- prometheus/process_collector.go | 1 - 1 file changed, 1 deletion(-) diff --git a/prometheus/process_collector.go b/prometheus/process_collector.go index 32ac74a..b80adc6 100644 --- a/prometheus/process_collector.go +++ b/prometheus/process_collector.go @@ -16,7 +16,6 @@ package prometheus import "github.com/prometheus/procfs" type processCollector struct { - pid int collectFn func(chan<- Metric) pidFn func() (int, error) cpuTotal *Desc