mirror of
https://github.com/mgechev/revive.git
synced 2024-11-28 08:49:11 +02:00
fix: invalid rule name in error message (#627)
This commit is contained in:
parent
8aab7c6042
commit
47a1cedde5
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user