Skip to content

Commit

Permalink
Cleaning up to go standards
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoles1 authored Aug 7, 2021
1 parent 08e981e commit d11ed71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion badge.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func drawBadge(coveragePct float64, filename string) error {
accentColor = colorRed
accentBorderColor = colorDarkRed
} else {
return errors.New("Coverage value must be >= 0%")
return errors.New("coverage value must be >= 0%")
}
//Create graphics context
dc := gg.NewContext(600, 120)
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func main() {

func badger(config gopherBadgerConfig) {
if !containsString(badgeStyles, config.badgeStyleFlag) {
logging.Fatal("Invalid style flag! Must be a member of list: ["+strings.Join(badgeStyles, ", ")+"]", errors.New("Invalid style flag"))
logging.Fatal("Invalid style flag! Must be a member of list: ["+strings.Join(badgeStyles, ", ")+"]", errors.New("invalid style flag"))
}

coverageBadge := coverbadge.Badge{
Expand Down Expand Up @@ -149,7 +149,7 @@ func badger(config gopherBadgerConfig) {
} else {
coverageFloat = config.manualCoverageFlag
}
if config.badgeOutputFlag == true {
if config.badgeOutputFlag {
coverageBadge.DownloadBadge("coverage_badge.png", coverageFloat)
}
if config.updateMdFilesFlag != "" {
Expand Down

0 comments on commit d11ed71

Please sign in to comment.