Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbep <bjorn.erik.pedersen@gmail.com>2015-03-07 14:58:39 +0300
committerbep <bjorn.erik.pedersen@gmail.com>2015-03-07 14:58:39 +0300
commita91bcd85e2d2b11e7bc8463d05e019de54abe3cf (patch)
tree4d06937f91e528af6b1226c0863862711515e3f9 /source/filesystem.go
parente007c9b25d076f5705afb63fda4f3abd3d05b7b8 (diff)
source: apply some Golint rules
Diffstat (limited to 'source/filesystem.go')
-rw-r--r--source/filesystem.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/source/filesystem.go b/source/filesystem.go
index 597d8c7a9..d30eea8da 100644
--- a/source/filesystem.go
+++ b/source/filesystem.go
@@ -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)