Skip to content

Commit 8e8c127

Browse files
committed
revert local storage just to be sure
1 parent eae6ad2 commit 8e8c127

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

modules/storage/local.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func (l *LocalStorage) URL(path, name string, reqParams url.Values) (*url.URL, e
121121
// IterateObjects iterates across the objects in the local storage
122122
func (l *LocalStorage) IterateObjects(dirName string, fn func(path string, obj Object) error) error {
123123
dir := l.buildLocalPath(dirName)
124-
err := filepath.WalkDir(dir, func(path string, d os.DirEntry, err error) error {
124+
return filepath.WalkDir(dir, func(path string, d os.DirEntry, err error) error {
125125
if err != nil {
126126
return err
127127
}
@@ -147,10 +147,6 @@ func (l *LocalStorage) IterateObjects(dirName string, fn func(path string, obj O
147147
defer obj.Close()
148148
return fn(relPath, obj)
149149
})
150-
if os.IsNotExist(err) {
151-
return nil
152-
}
153-
return err
154150
}
155151

156152
func init() {

0 commit comments

Comments
 (0)