forgotten changes to builtin-os-file-iter.go
This commit is contained in:
@@ -45,9 +45,9 @@ func (it *fileIterBase) increment() {
|
|||||||
|
|
||||||
func (it *fileIterBase) repr(typeName string) string {
|
func (it *fileIterBase) repr(typeName string) string {
|
||||||
if it.reader.Valid() {
|
if it.reader.Valid() {
|
||||||
return fmt.Sprintf("$(%s@%q)", fileLineIteratorType, it.reader.GetName())
|
return fmt.Sprintf("$(%s@%q)", typeName, it.reader.GetName())
|
||||||
}
|
}
|
||||||
return fmt.Sprintf("$(%s@<nil>)", fileLineIteratorType)
|
return fmt.Sprintf("$(%s@<nil>)", typeName)
|
||||||
}
|
}
|
||||||
|
|
||||||
func initFileHandle(ctx kern.ExprContext, name string, args map[string]any) (handle *file.Reader, invalidFileHandle any, autoClose bool, err error) {
|
func initFileHandle(ctx kern.ExprContext, name string, args map[string]any) (handle *file.Reader, invalidFileHandle any, autoClose bool, err error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user