Skip to content

Commit 155590a

Browse files
fix: Mark unused context parameter with underscore in EvaluateCondition
- Rename ctx to _ to satisfy revive linter - Context parameter kept for future use and API consistency
1 parent 16d7fe5 commit 155590a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/fnruntime/celeval.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func NewCELEvaluator(condition string) (*CELEvaluator, error) {
7171
// EvaluateCondition evaluates a CEL condition expression against a list of resources
7272
// Returns true if the condition is met, false otherwise
7373
// The program is pre-compiled, so this just evaluates it with the given resources
74-
func (e *CELEvaluator) EvaluateCondition(ctx context.Context, resources []*yaml.RNode) (bool, error) {
74+
func (e *CELEvaluator) EvaluateCondition(_ context.Context, resources []*yaml.RNode) (bool, error) {
7575
if e.prg == nil {
7676
return true, nil
7777
}

0 commit comments

Comments
 (0)