Skip to content

Commit

Permalink
fix: remove panic
Browse files Browse the repository at this point in the history
  • Loading branch information
Bin-Huang committed Aug 9, 2022
1 parent 9b0ad40 commit 7c1f755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ func makeConstructor() error {
for _, filename := range pkg.GoFiles {
has, err := IncludeMakeMark(filename)
if err != nil {
panic(err)
return err
}
if !has {
continue
}
results, imports, err := ParseCodeFile(filename)
if err != nil {
panic(err)
return err
}
if len(results) == 0 {
continue
Expand Down

0 comments on commit 7c1f755

Please sign in to comment.