Skip to content

Commit

Permalink
removes extra empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
chavacava committed Sep 23, 2023
1 parent 2d15cd2 commit e367ba0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion rule/confusing-naming.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ func (*ConfusingNamingRule) Name() string {

// checkMethodName checks if a given method/function name is similar (just case differences) to other method/function of the same struct/file.
func checkMethodName(holder string, id *ast.Ident, w *lintConfusingNames) {

if id.Name == "init" && holder == defaultStructName {
// ignore init functions
return
Expand Down
2 changes: 1 addition & 1 deletion rule/defer.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ func (w lintDeferRule) Visit(node ast.Node) ast.Visitor {
w.newFailure("be careful when deferring calls to methods without pointer receiver", fn, 0.8, "bad practice", "method-call")
}
}

}

return nil
}

Expand Down

0 comments on commit e367ba0

Please sign in to comment.