use variable instead of function
This commit is contained in:
parent
172746eb71
commit
eedd7e6074
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user