Skip to content

Commit d56b8bc

Browse files
wxiaoguangwolfogre
andauthored
Update modules/assetfs/layered.go
Co-authored-by: Jason Song <i@wolfogre.com>
1 parent ffdfb54 commit d56b8bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/assetfs/layered.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func (l *LayeredFS) ListFiles(name string, fileMode ...bool) ([]string, error) {
136136
}
137137
}
138138
}
139-
var files []string
139+
files := make([]string, 0, len(fileMap))
140140
for file := range fileMap {
141141
files = append(files, file)
142142
}

0 commit comments

Comments
 (0)