Skip to content

Commit

Permalink
revert parameter add - where it is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
mfederowicz committed Dec 24, 2023
1 parent 8873396 commit 2e01ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rule/cognitive-complexity.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func (r *cognitiveComplexityVisitor) walk(complexityIncrement int, targets ...as
r.nestingLevel = nesting
}

func (r cognitiveComplexityVisitor) binExpComplexity(n *ast.BinaryExpr) int {
func (cognitiveComplexityVisitor) binExpComplexity(n *ast.BinaryExpr) int {
calculator := binExprComplexityCalculator{opsStack: []token.Token{}}

astutil.Apply(n, calculator.pre, calculator.post)
Expand Down

0 comments on commit 2e01ba3

Please sign in to comment.