Skip to content

Commit

Permalink
fix: invalid rule name in error message (#627)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez authored Jan 27, 2022
1 parent 8aab7c6 commit 47a1ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rule/argument-limit.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func (r *ArgumentsLimitRule) Apply(file *lint.File, arguments lint.Arguments) []

total, ok := arguments[0].(int64) // Alt. non panicking version
if !ok {
panic(`invalid value passed as argument number to the "argument-list" rule`)
panic(`invalid value passed as argument number to the "argument-limit" rule`)
}
r.total = int(total)
}
Expand Down

0 comments on commit 47a1ced

Please sign in to comment.