We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8249703 commit ae76d5dCopy full SHA for ae76d5d
analyzer/analyzer.go
@@ -68,7 +68,11 @@ func run(pass *analysis.Pass) (interface{}, error) {
68
switch n := node.(type) {
69
case *ast.ImportSpec:
70
if n.Path.Value == `"github.com/cschleiden/go-workflows/workflow"` {
71
- workflowImportName = n.Name.Name
+ if n.Name != nil {
72
+ workflowImportName = n.Name.Name
73
+ } else {
74
+ workflowImportName = "workflow"
75
+ }
76
}
77
78
case *ast.FuncDecl:
0 commit comments