use variable instead of function

This commit is contained in:
Hector 2021-10-12 20:59:30 +01:00
parent 172746eb71
commit eedd7e6074

View File

@ -35,7 +35,7 @@ func (c *Collector) collectFileContents() {
fileName: fileName, fileName: fileName,
} }
fullPath := filepath.Join(c.folderPath, file.Name()) fullPath := filepath.Join(c.folderPath, fileName)
content, err := ioutil.ReadFile(fullPath) content, err := ioutil.ReadFile(fullPath)
if err != nil { if err != nil {
c.appendErrorForPath(fileName) c.appendErrorForPath(fileName)