Skip to content

Commit

Permalink
refactor: shorten count statements
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebell committed Oct 9, 2024
1 parent 9e5f52d commit 047496b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/mean-time-to-repair/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func main() {
t := strings.Replace(regmatch, "**Time to repair**: ", "", -1)
timeToRepairTemp := convertToRaw(t)
timeToRepair = timeToRepair + timeToRepairTemp
count = count + 1
count += 1
}

re2 := regexp.MustCompile(`\*\*Time to resolve\*\*: (\d*. \d*.|\d*.)`)
Expand All @@ -105,7 +105,7 @@ func main() {
t := strings.Replace(resolveMatch, "**Time to resolve**: ", "", -1)
timeToResolveTemp := convertToRaw(t)
timeToResolve = timeToResolve + timeToResolveTemp
resolveCount = resolveCount + 1
resolveCount += 1
}

if count != 0 {
Expand Down

0 comments on commit 047496b

Please sign in to comment.