chore: slice loop replace (#173)

This commit is contained in:
guangwu 2023-10-03 07:24:17 +08:00 committed by GitHub
parent 7a59d0929c
commit 48c55af373
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,10 +119,8 @@ func getFiles(f iofs.ReadDirFS, name string) ([]string, error) {
if files == nil { if files == nil {
return nil, nil return nil, nil
} }
for _, f := range files { v = append(v, files...)
v = append(v, f)
}
continue continue
} }