Skip to content

Commit

Permalink
Update EvaluateExpression method to use 'any' type instead of 'interf…
Browse files Browse the repository at this point in the history
…ace{}'
  • Loading branch information
kasugamirai committed Dec 18, 2024
1 parent 18676a5 commit e636ffa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkl/evaluator.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type Evaluator interface {

// EvaluateExpression evaluates the provided expression on the given module source, and writes
// the result into the value pointed by out.
EvaluateExpression(ctx context.Context, source *ModuleSource, expr string, out interface{}) error
EvaluateExpression(ctx context.Context, source *ModuleSource, expr string, out any) error

// EvaluateExpressionRaw evaluates the provided module, and returns the underlying value's raw
// bytes.
Expand Down Expand Up @@ -94,7 +94,7 @@ func (e *evaluator) EvaluateOutputFiles(ctx context.Context, source *ModuleSourc
return out, err
}

func (e *evaluator) EvaluateExpression(ctx context.Context, source *ModuleSource, expr string, out interface{}) error {
func (e *evaluator) EvaluateExpression(ctx context.Context, source *ModuleSource, expr string, out any) error {
bytes, err := e.EvaluateExpressionRaw(ctx, source, expr)
if err != nil {
return err
Expand Down

0 comments on commit e636ffa

Please sign in to comment.