Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bombsimon committed Feb 15, 2023
1 parent 9372cd9 commit 07a9043
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wsl.go
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,7 @@ func (p *Processor) addWhitespaceBeforeError(node ast.Node, reason string) {
p.addError(node, nil, reason, WhitespaceShouldAddBefore, false)
}

func (p *Processor) addWhitespaceBeforeFixOtherNodeError(reportNode ast.Node, fixNode ast.Node, reason string) {
func (p *Processor) addWhitespaceBeforeFixOtherNodeError(reportNode, fixNode ast.Node, reason string) {
p.addError(reportNode, fixNode, reason, WhitespaceShouldAddBefore, false)
}

Expand All @@ -1291,6 +1291,8 @@ func (p *Processor) addWhitespaceAfterError(node ast.Node, reason string) {

// Add an error for the file and line number for the current token.Pos with the
// given reason.
//
//nolint:unparam // We will potentially use this in the future.
func (p *Processor) addError(reportNode, fixNode ast.Node, reason string, errType ErrorType, noFix bool) {
if fixNode == nil {
fixNode = reportNode
Expand Down

0 comments on commit 07a9043

Please sign in to comment.