remove redundant code
Signed-off-by: kevinetc123 <kaiwentan@harmonycloud.cn>
This commit is contained in:
parent
6bb8d5a589
commit
08f8270e2d
1 changed files with 2 additions and 1 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue