1
0
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:
Ludovic Fernandez 2022-01-27 08:32:08 +01:00 committed by GitHub
parent 8aab7c6042
commit 47a1cedde5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}