Skip to content

Commit

Permalink
Update indent-error-flow.go
Browse files Browse the repository at this point in the history
  • Loading branch information
chavacava authored Sep 24, 2023
1 parent 9715177 commit 2ede21e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rule/indent-error-flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func (*IndentErrorFlowRule) Name() string {
}

// CheckIfElse evaluates the rule against an ifelse.Chain.
func (_ *IndentErrorFlowRule) CheckIfElse(chain ifelse.Chain, args ifelse.Args) (failMsg string) {
func (*IndentErrorFlowRule) CheckIfElse(chain ifelse.Chain, args ifelse.Args) (failMsg string) {
if !chain.If.Deviates() {
// this rule only applies if the if-block deviates control flow
return
Expand Down

0 comments on commit 2ede21e

Please sign in to comment.