pkg/eval: Slightly simplify implementation of fopen.

This commit is contained in:
Qi Xiao 2020-01-06 22:17:48 +00:00
parent 10b4baf89c
commit b496591e7c

View File

@ -231,10 +231,9 @@ func toJSON(fm *Frame, inputs Inputs) error {
return errEncode
}
func fopen(fm *Frame, name string) (vals.File, error) {
func fopen(name string) (vals.File, error) {
// TODO support opening files for writing etc as well.
f, err := os.Open(name)
return f, err
return os.Open(name)
}
func fclose(f vals.File) error {