source: apply some Golint rules

This commit is contained in:
bep 2015-03-07 12:58:39 +01:00
parent e007c9b25d
commit a91bcd85e2
2 changed files with 17 additions and 21 deletions

View file

@ -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)