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:
@ -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]))
|
||||
}
|
||||
|
Reference in New Issue
Block a user