remove redundant code

Signed-off-by: kevinetc123 <kaiwentan@harmonycloud.cn>
This commit is contained in:
kevinetc123 2017-02-15 20:43:17 +08:00
parent 6bb8d5a589
commit 08f8270e2d

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() {