Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #58 from maxatome/master
Browse files Browse the repository at this point in the history
Avoid unnecessary conversion and so pass with unconvert linter
  • Loading branch information
maddyblue authored Feb 11, 2019
2 parents e93e776 + 23d0416 commit 0ea7db1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion embed/embed.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion testdata/empty.expect
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0ea7db1

Please sign in to comment.