Merge pull request #524 from kevinetc123/patch-1

Remove redundant code
This commit is contained in:
Phil Estes 2017-02-15 15:47:12 -05:00 committed by GitHub
commit a891727e69
1 changed files with 2 additions and 1 deletions

View File

@ -186,7 +186,8 @@ func (cs *Store) Walk(fn WalkFunc) error {
if path == root {
return nil
} else if filepath.Dir(path) == root {
}
if filepath.Dir(path) == root {
alg = digest.Algorithm(filepath.Base(path))
if !alg.Available() {