summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-04-09 15:00:53 -0400
committerKyle Gunger <kgunger12@gmail.com>2022-04-09 15:00:53 -0400
commit9d2f8bbece1fea5cc2b3db7abe8d395e1d1d2f9e (patch)
tree24aaf0882cefc7e55c1090b2625c15f7dacabcd8
parentc373ad7aa67ea47876a9f9358305d5488d6f24ff (diff)
[EXEC] Hotfix for reading from files
-rw-r--r--src/texec/eval.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/texec/eval.go b/src/texec/eval.go
index 4d4785d..2ac6eab 100644
--- a/src/texec/eval.go
+++ b/src/texec/eval.go
@@ -628,7 +628,7 @@ func resolveStructCall(a TArtifact, method string, params []TVariable) TVariable
a.Name = method
tres := tnslResolve(a)
- if a.Name == "close" {
+ if a.Name == "close" || a.Name == "read" {
params = append(params, null)
}