Skip to content

Commit

Permalink
fix var name
Browse files Browse the repository at this point in the history
  • Loading branch information
mfederowicz committed Dec 1, 2023
1 parent 307cab0 commit c3a4e8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rule/add-constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (w lintAddConstantRule) isIgnoredFunc(fName string) bool {
}

func (w lintAddConstantRule) checkStrLit(n *ast.BasicLit) {
if w.allowLst[kindSTRING][n.Value] {
if w.allowList[kindSTRING][n.Value] {
return
}

Expand All @@ -159,7 +159,7 @@ func (w lintAddConstantRule) checkStrLit(n *ast.BasicLit) {
}

func (w lintAddConstantRule) checkNumLit(kind string, n *ast.BasicLit) {
if w.allowLst[kind][n.Value] {
if w.allowList[kind][n.Value] {
return
}

Expand Down

0 comments on commit c3a4e8d

Please sign in to comment.