fix builds
This commit is contained in:
parent
ae9ca588d6
commit
26e331f331
4 changed files with 20 additions and 21 deletions
|
|
@ -116,7 +116,7 @@ func Fexists(in *ast.Token, vt ast.VarTable, ft ast.FuncTable) *ast.Token {
|
|||
*/
|
||||
func Fread(in *ast.Token, vt ast.VarTable, ft ast.FuncTable) *ast.Token {
|
||||
in = in.Eval(ft, vt, false)
|
||||
exists := fexists(in, vt, ft) // some waste, extra use of Eval
|
||||
exists := Fexists(in, vt, ft) // some waste, extra use of Eval
|
||||
if exists == nil || exists.Tag != ast.BOOL || exists.Value() == ast.FALSE {
|
||||
log.Log(log.ERR,
|
||||
"error calling fexists or file doesnt exist",
|
||||
|
|
@ -199,7 +199,7 @@ func Fappend(in *ast.Token, vt ast.VarTable, ft ast.FuncTable) *ast.Token {
|
|||
return nil
|
||||
}
|
||||
|
||||
exists := fexists(in, vt, ft)
|
||||
exists := Fexists(in, vt, ft)
|
||||
if exists.Value() == ast.FALSE {
|
||||
log.Log(log.ERR,
|
||||
"file "+in.Value()+" does not exist",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue