Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kulti committed Jan 28, 2022
1 parent 54eb306 commit eb9983b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/analyzer/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ func unwrapTestingFunctionBuilding(pass *analysis.Pass, expr ast.Expr, testFuncT
funcDecl.Body = funObjDecl.Body
funcDecl.Type = funObjDecl.Type
case *ast.SelectorExpr:
fd := findSelectroDeclaration(pass, f)
fd := findSelectorDeclaration(pass, f)
if fd == nil {
return nil
}
Expand Down Expand Up @@ -499,8 +499,8 @@ func isExprHasType(pass *analysis.Pass, expr ast.Expr, expType types.Type) bool
return types.Identical(typeInfo.Type, expType)
}

// findSelectroDeclaration returns function declaration called by selectro expression.
func findSelectroDeclaration(pass *analysis.Pass, expr *ast.SelectorExpr) *ast.FuncDecl {
// findSelectorDeclaration returns function declaration called by selector expression.
func findSelectorDeclaration(pass *analysis.Pass, expr *ast.SelectorExpr) *ast.FuncDecl {
xsel, ok := pass.TypesInfo.Selections[expr]
if !ok {
return nil
Expand Down

0 comments on commit eb9983b

Please sign in to comment.