Skip to content

Commit

Permalink
fix bug where only one report was being processed
Browse files Browse the repository at this point in the history
  • Loading branch information
imsky committed Feb 7, 2018
1 parent 5c3ade7 commit 6953aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func ComputeTotalCoverage(sourceFiles map[string][]SourceFile) float64 {
}

func Run(reports []string) {
if len(reports) != 1 {
if len(reports) == 0 {
flag.Usage()
return
}
Expand Down

0 comments on commit 6953aaf

Please sign in to comment.