Skip to content

Commit

Permalink
refactor: add vars to top
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebell committed Oct 9, 2024
1 parent c918706 commit 9e5f52d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cmd/mean-time-to-repair/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,14 @@ func convertHoursToMinutes(i int) int {
}

func main() {
var data []string
var str strings.Builder

lines, err := readLines("../../runbooks/source/incident-log.html.md.erb")
if err != nil {
log.Fatalf("readLines: %s", err)
}

var data []string

var str strings.Builder

for _, line := range lines {
str.WriteString(line)

Expand Down

0 comments on commit 9e5f52d

Please sign in to comment.