Skip to content

Commit

Permalink
Adding back the fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
algojack committed Jan 18, 2023
1 parent e5fa557 commit e1ae7fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/partitiontest_linter/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ require golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect

require golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect

require golang.org/x/tools v0.1.3
require golang.org/x/tools v0.1.12
2 changes: 1 addition & 1 deletion cmd/partitiontest_linter/linter.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func doesParameterNameMatch(call *ast.CallExpr, fn *ast.FuncDecl) bool {
for _, oneArg := range call.Args {

if realArg, ok := oneArg.(*ast.Ident); ok {
if realArg.Obj.Name == fn.Type.Params.List[0].Names[0].Obj.Name {
if realArg != nil && realArg.Obj != nil && realArg.Obj.Name == fn.Type.Params.List[0].Names[0].Obj.Name {
return true
}
}
Expand Down

0 comments on commit e1ae7fa

Please sign in to comment.