1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-28 08:49:11 +02:00

Update empty-lines.go

removes warning on unused parameter
This commit is contained in:
SalvadorC 2018-10-13 20:13:29 +02:00 committed by GitHub
parent b7d9bce0b6
commit 3cae2fa6f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ import (
type EmptyLinesRule struct{} type EmptyLinesRule struct{}
// Apply applies the rule to given file. // Apply applies the rule to given file.
func (r *EmptyLinesRule) Apply(file *lint.File, arguments lint.Arguments) []lint.Failure { func (r *EmptyLinesRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure {
var failures []lint.Failure var failures []lint.Failure
onFailure := func(failure lint.Failure) { onFailure := func(failure lint.Failure) {