Skip to content

Commit 5fd040b

Browse files
committed
Simplify even further as per zoom convo
1 parent 943a0f7 commit 5fd040b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cli/parse.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -519,11 +519,7 @@ func appendFile(fpath string, argDef *cmds.Argument, recursive, hidden bool) (fi
519519
return nil, err
520520
}
521521

522-
return files.NewReaderPathFile(
523-
"", // the path string should only refer to files that can actually be read. The filestore/urlstore features will use it
524-
file,
525-
nil, // normally the passed through stat will be used to determine the size of the file. It'll give us very incorrect information in this case
526-
)
522+
return files.NewReaderFile(file), nil
527523
}
528524

529525
return files.NewSerialFile(fpath, hidden, stat)

0 commit comments

Comments
 (0)