Skip to content

Commit 47a1ced

Browse files
authored
fix: invalid rule name in error message (#627)
1 parent 8aab7c6 commit 47a1ced

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rule/argument-limit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func (r *ArgumentsLimitRule) Apply(file *lint.File, arguments lint.Arguments) []
1919

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

0 commit comments

Comments
 (0)