1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-07-05 00:49:00 +02:00

Feature/eval template (#651)

* Refactored use of eval

* Disable unstable unit test
This commit is contained in:
Tim Voronov
2021-09-07 16:33:30 -04:00
committed by GitHub
parent 5f361e9e1b
commit e4e98830a0
75 changed files with 1935 additions and 1778 deletions

View File

@ -27,7 +27,7 @@ func Hover(ctx context.Context, args ...core.Value) (core.Value, error) {
}
if len(args) == 1 {
return values.None, el.Hover(ctx)
return values.True, el.Hover(ctx)
}
err = core.ValidateType(args[1], types.String)
@ -36,5 +36,5 @@ func Hover(ctx context.Context, args ...core.Value) (core.Value, error) {
return values.None, err
}
return values.None, el.HoverBySelector(ctx, values.ToString(args[1]))
return values.True, el.HoverBySelector(ctx, values.ToString(args[1]))
}