Skip to content

Commit ffd3ee0

Browse files
author
anatoly32322
committed
Fix linters
1 parent 29a65aa commit ffd3ee0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/cmd/gstack/utils/utils.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,10 @@ func getFuncName(funcDecl *ast.FuncDecl) (string, error) {
9797
if err != nil {
9898
return "", err
9999
}
100+
100101
return prefix + "." + funcDecl.Name.Name, nil
101102
}
103+
102104
return funcDecl.Name.Name, nil
103105
}
104106

@@ -111,6 +113,7 @@ func getIdentNameFromExpr(expr ast.Expr) (string, error) {
111113
if err != nil {
112114
return "", err
113115
}
116+
114117
return "(*" + prefix + ")", nil
115118
case *ast.IndexExpr:
116119
return getIdentNameFromExpr(expr.X)
@@ -127,5 +130,6 @@ func getPackageName(fset *token.FileSet, arg FunctionIDArg) (string, error) {
127130
if err != nil {
128131
return "", fmt.Errorf("error during get package name function")
129132
}
133+
130134
return parsedFile.Name.Name, nil
131135
}

0 commit comments

Comments
 (0)