mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
source: apply some Golint rules
This commit is contained in:
@@ -107,17 +107,17 @@ func (f *Filesystem) captureFiles() {
|
||||
return filepath.SkipDir
|
||||
}
|
||||
return nil
|
||||
} else {
|
||||
if isNonProcessablePath(filePath) {
|
||||
return nil
|
||||
}
|
||||
data, err := ioutil.ReadFile(filePath)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
f.add(filePath, bytes.NewBuffer(data))
|
||||
}
|
||||
|
||||
if isNonProcessablePath(filePath) {
|
||||
return nil
|
||||
}
|
||||
data, err := ioutil.ReadFile(filePath)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
f.add(filePath, bytes.NewBuffer(data))
|
||||
return nil
|
||||
}
|
||||
|
||||
filepath.Walk(f.Base, walker)
|
||||
|
Reference in New Issue
Block a user