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

View file

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