From a91bcd85e2d2b11e7bc8463d05e019de54abe3cf Mon Sep 17 00:00:00 2001 From: bep Date: Sat, 7 Mar 2015 12:58:39 +0100 Subject: source: apply some Golint rules --- source/filesystem.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'source/filesystem.go') 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) -- cgit v1.2.3