Skip to content

Commit

Permalink
Use bullets instead of index (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
nakabonne committed Oct 11, 2020
1 parent efc3fa3 commit 86bc7fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions gui/drawer.go
Expand Up @@ -149,9 +149,9 @@ func (d *drawer) redrawMetrics(ctx context.Context) {
d.widgets.statusCodesText.Write(codesText, text.WriteReplace())

errorsText := ""
for i, e := range metrics.Errors {
errorsText += fmt.Sprintf(`%d: %s
`, i, e)
for _, e := range metrics.Errors {
errorsText += fmt.Sprintf(`- %s
`, e)
}
d.widgets.errorsText.Write(errorsText, text.WriteReplace())
}
Expand Down
2 changes: 1 addition & 1 deletion gui/drawer_test.go
Expand Up @@ -223,7 +223,7 @@ Out:

errorsText: func() Text {
t := NewMockText(ctrl)
t.EXPECT().Write(`0: error1
t.EXPECT().Write(`- error1
`, gomock.Any())
return t
}(),
Expand Down

0 comments on commit 86bc7fb

Please sign in to comment.