mirror of
				https://github.com/ClusterCockpit/cc-metric-collector.git
				synced 2025-11-04 02:35:07 +01:00 
			
		
		
		
	Fix staticcheck warnings (#66)
This commit is contained in:
		@@ -61,7 +61,7 @@ func (m *CustomCmdCollector) Init(config json.RawMessage) error {
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	if len(m.files) == 0 && len(m.commands) == 0 {
 | 
			
		||||
		return errors.New("No metrics to collect")
 | 
			
		||||
		return errors.New("no metrics to collect")
 | 
			
		||||
	}
 | 
			
		||||
	m.handler = influx.NewMetricHandler()
 | 
			
		||||
	m.parser = influx.NewParser(m.handler)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user