You've already forked prometheus-fail2ban-exporter
use variable instead of function
This commit is contained in:
@ -35,7 +35,7 @@ func (c *Collector) collectFileContents() {
|
||||
fileName: fileName,
|
||||
}
|
||||
|
||||
fullPath := filepath.Join(c.folderPath, file.Name())
|
||||
fullPath := filepath.Join(c.folderPath, fileName)
|
||||
content, err := ioutil.ReadFile(fullPath)
|
||||
if err != nil {
|
||||
c.appendErrorForPath(fileName)
|
||||
|
Reference in New Issue
Block a user