adjust NewDiskFile() paramaters

This commit is contained in:
Chris Lu
2019-10-29 22:37:36 -07:00
parent cd7ce720c7
commit 4b5ba4927f
8 changed files with 12 additions and 12 deletions

View File

@@ -14,9 +14,9 @@ type DiskFile struct {
fullFilePath string
}
func NewDiskFile(fullFilePath string, f *os.File) *DiskFile {
func NewDiskFile(f *os.File) *DiskFile {
return &DiskFile{
fullFilePath: fullFilePath,
fullFilePath: f.Name(),
File: f,
}
}