diff options
author | Teddy Wing | 2023-05-18 04:42:42 +0200 |
---|---|---|
committer | Teddy Wing | 2023-05-18 04:43:09 +0200 |
commit | 3e2c455312e3558f6793b6f526c37820e8fe2afd (patch) | |
tree | e456ed0938f758ff015a8e63131597bf956baee3 | |
parent | c627e49861514a1743c5df0ae9a4026a40b2ce95 (diff) | |
download | gocapturedrefrace-3e2c455312e3558f6793b6f526c37820e8fe2afd.tar.bz2 |
findLocalVarDeclarations: Remove unused `pass` argument
I though I might need it when I first wrote the function.
-rw-r--r-- | gocapturedrefrace.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gocapturedrefrace.go b/gocapturedrefrace.go index 6e5a9d0..1404f78 100644 --- a/gocapturedrefrace.go +++ b/gocapturedrefrace.go @@ -86,7 +86,7 @@ func checkClosure(pass *analysis.Pass, funcLit *ast.FuncLit) { // Build a list of assignments local to funcLit. These will be ignored as // shadowed variables. - localVarDeclarations := findLocalVarDeclarations(pass, funcLit) + localVarDeclarations := findLocalVarDeclarations(funcLit) ast.Inspect( funcLit, @@ -144,7 +144,6 @@ func checkClosure(pass *analysis.Pass, funcLit *ast.FuncLit) { // findLocalVarDeclarations returns a list of all variable declarations in // funcLit. func findLocalVarDeclarations( - pass *analysis.Pass, funcLit *ast.FuncLit, ) (declarations []*ast.Ident) { declarations = []*ast.Ident{} |