Skip to content

Commit

Permalink
Rename function for new return value
Browse files Browse the repository at this point in the history
  • Loading branch information
dnephin committed Sep 25, 2022
1 parent ddad04c commit 4c65207
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Expand Up @@ -5,7 +5,7 @@ linters-settings:
lll:
line-length: 100
maintidx:
under: 40
under: 35

issues:
exclude-use-default: false
Expand Down
2 changes: 1 addition & 1 deletion assert/cmd/gty-migrate-from-testify/migrate.go
Expand Up @@ -141,7 +141,7 @@ func convertTestifySingleArgCall(tcall call) ast.Node {
}
}

func convertTestifyAssertion(tcall call, migration migration) ast.Node { //nolint:maintidx
func convertTestifyAssertion(tcall call, migration migration) ast.Node {
imports := migration.importNames

switch tcall.selExpr.Sel.Name {
Expand Down
4 changes: 2 additions & 2 deletions internal/source/update.go
Expand Up @@ -54,7 +54,7 @@ func UpdateExpectedValue(stackIndex int, x, y interface{}) error {
return ErrNotFound
}

argIndex, ident := getVarNameForExpectedValueArg(expr)
argIndex, ident := getIdentForExpectedValueArg(expr)
if argIndex < 0 || ident == nil {
debug("no arguments started with the word 'expected': %v",
debugFormatNode{Node: &ast.CallExpr{Args: expr}})
Expand Down Expand Up @@ -138,7 +138,7 @@ func UpdateVariable(
return nil
}

func getVarNameForExpectedValueArg(expr []ast.Expr) (int, *ast.Ident) {
func getIdentForExpectedValueArg(expr []ast.Expr) (int, *ast.Ident) {
for i := 1; i < 3; i++ {
switch e := expr[i].(type) {
case *ast.Ident:
Expand Down

0 comments on commit 4c65207

Please sign in to comment.