Skip to content

Commit

Permalink
fix: fix code empty issues
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Sep 16, 2020
1 parent d8cc503 commit 5e788e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/cloc.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ func convertToCsv(outputFiles []string) {
baseName := strings.TrimSuffix(filepath.Base(file), filepath.Ext(file))
err := yaml.Unmarshal(contents, &summary)
if err != nil {
panic(err)
fmt.Println("handle file error: " + file + ", maybe no code!")
//panic(err)
}
summaryMap[baseName] = summary
data = append(data, []string{baseName, strconv.Itoa(int(summary.Sum.Code))})
Expand Down

0 comments on commit 5e788e9

Please sign in to comment.