Unshadow err in one place

This commit is contained in:
Zlatko Čalušić 2017-10-25 18:19:14 +02:00
parent 0f9ea68a2e
commit 10951e4540

View file

@ -246,7 +246,8 @@ func ListBlobs(w http.ResponseWriter, r *http.Request) {
for _, i := range items {
if isHashed(fileType) {
subpath := filepath.Join(path, i.Name())
subitems, err := ioutil.ReadDir(subpath)
var subitems []os.FileInfo
subitems, err = ioutil.ReadDir(subpath)
if err != nil {
if Config.Debug {
log.Print(err)