diff --git a/embed/embed.go b/embed/embed.go index e220305..b497195 100644 --- a/embed/embed.go +++ b/embed/embed.go @@ -364,7 +364,7 @@ func (f *_escFile) Readdir(count int) ([]os.FileInfo, error) { return nil, io.EOF } - return []os.FileInfo(fis[0:limit]), nil + return fis[0:limit], nil } diff --git a/testdata/empty.expect b/testdata/empty.expect index 64ec2b9..26d9d8b 100644 --- a/testdata/empty.expect +++ b/testdata/empty.expect @@ -119,7 +119,7 @@ func (f *_escFile) Readdir(count int) ([]os.FileInfo, error) { return nil, io.EOF } - return []os.FileInfo(fis[0:limit]), nil + return fis[0:limit], nil } func (f *_escFile) Stat() (os.FileInfo, error) {