lang: core, funcs: Rename things for consistency

Seems we had different patterns going on. This makes those all
consistent now.
This commit is contained in:
James Shubin
2025-03-26 19:06:20 -04:00
parent 30aca74089
commit 8ff187b4e9
8 changed files with 41 additions and 42 deletions

View File

@@ -162,8 +162,8 @@ func (obj *VarDirFunc) Stream(ctx context.Context) error {
// Call this function with the input args and return the value if it is possible
// to do so at this time.
func (obj *VarDirFunc) Call(ctx context.Context, input []types.Value) (types.Value, error) {
reldir := input[0].Str()
func (obj *VarDirFunc) Call(ctx context.Context, args []types.Value) (types.Value, error) {
reldir := args[0].Str()
if strings.HasPrefix(reldir, "/") {
return nil, fmt.Errorf("path must be relative")
}