Skip to content

Commit

Permalink
fix missing return
Browse files Browse the repository at this point in the history
  • Loading branch information
jippi committed Feb 4, 2024
1 parent 7fbf166 commit 40e7b3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/render/handler_filters.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func FilterKeyPrefix(in *HandlerInput) HandlerSignal {
func FilterComments(in *HandlerInput) HandlerSignal {
// Short circuit the filter if we allow comments
if in.Settings.WithComments() {
in.Continue()
return in.Continue()
}

switch in.Statement.(type) {
Expand All @@ -46,7 +46,7 @@ func FilterComments(in *HandlerInput) HandlerSignal {
func FilterDisabledStatements(in *HandlerInput) HandlerSignal {
// Short circuit the filter if we allow disabled statements
if in.Settings.IncludeDisabled {
in.Continue()
return in.Continue()
}

switch val := in.Statement.(type) {
Expand Down

0 comments on commit 40e7b3d

Please sign in to comment.