Skip to content

Commit

Permalink
parse float args like 99.9
Browse files Browse the repository at this point in the history
  • Loading branch information
imsky committed Feb 5, 2018
1 parent 5d6027b commit 63273bb
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 @@ -72,8 +72,8 @@ func Run(args []string) {
return
}

coverage, _ := strconv.Atoi(args[0])
badge, err := RenderBadge(coverage)
coverage, _ := strconv.ParseFloat(args[0], 64)
badge, err := RenderBadge(int(coverage))

if err != nil {
panic(err)
Expand Down

0 comments on commit 63273bb

Please sign in to comment.