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

Avoid unnecessary conversion and so pass with unconvert linter #58

Merged
merged 1 commit into from
Feb 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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