Skip to content

Commit

Permalink
Add CI flow
Browse files Browse the repository at this point in the history
Rename codegeneration.go -> main.go
  • Loading branch information
anatoly32322 committed Mar 23, 2024
1 parent eca954d commit dc2e6ed
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/cmd/gstack/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,10 @@ func getExprFromDeclStmt(statement *ast.DeclStmt) (listOfExpressions []ast.Expr)
}
for _, spec := range decl.Specs {
if spec, ok := spec.(*ast.ValueSpec); ok {
for _, expr := range spec.Values {
listOfExpressions = append(listOfExpressions, expr)
}
listOfExpressions = append(listOfExpressions, spec.Values...)
}
}

return listOfExpressions
}

Expand Down

0 comments on commit dc2e6ed

Please sign in to comment.