Skip to content

Commit

Permalink
fix: pr fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davenewza committed Nov 9, 2023
1 parent d17fde7 commit c449cb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file removed schema/__debug_bin947378542
Binary file not shown.
4 changes: 2 additions & 2 deletions schema/validation/unused_inputs.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ func UnusedInputRule(_ []*parser.AST, errs *errorhandling.ValidationErrors) Visi
isAction = true
},
LeaveAction: func(n *parser.ActionNode) {
isAction = false

// if the action is implemented as a function, then we don't know how the function
// uses the inputs (if at all), so not a validation error.
if n.IsFunction() {
Expand All @@ -37,8 +39,6 @@ func UnusedInputRule(_ []*parser.AST, errs *errorhandling.ValidationErrors) Visi
),
)
}

isAction = false
},
EnterActionInput: func(n *parser.ActionInputNode) {
if n.Label == nil {
Expand Down

0 comments on commit c449cb1

Please sign in to comment.