Reinit slice for each dir in search

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2015-02-25 15:53:07 -08:00
parent 481e75203d
commit 8be8e41429

View file

@ -389,8 +389,8 @@ func TestSaveDirectoryPermissions(t *testing.T) {
} }
found := false found := false
var entriesSansDev []string
for _, entry := range dirs { for _, entry := range dirs {
var entriesSansDev []string
if entry.IsDir() { if entry.IsDir() {
layerPath := filepath.Join(extractionDirectory, entry.Name(), "layer.tar") layerPath := filepath.Join(extractionDirectory, entry.Name(), "layer.tar")