diff options
| author | T <t@tjp.lol> | 2025-04-03 10:42:08 -0600 |
|---|---|---|
| committer | T <t@tjp.lol> | 2025-04-03 10:43:28 -0600 |
| commit | b304395d251e0cf3e3079fd1acf9eb50c16e81ac (patch) | |
| tree | fdd625dd809eea03523cf4d8bf7d4cbdd55aaa92 /tour.go | |
| parent | 129bf1b24678743c3ee076ccdb5d5b34f311f98b (diff) | |
replace []byte(fmt.Sprintf()) with fmt.Appendf([]byte{}, )
Diffstat (limited to 'tour.go')
| -rw-r--r-- | tour.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -65,7 +65,7 @@ func TourAdd(state *BrowserState, targets []string) error { return saveTours(state.NamedTours) } - state.Modal = []byte(fmt.Sprintf("Added %d urls to the tour\n", len(newurls))) + state.Modal = fmt.Appendf([]byte{}, "Added %d urls to the tour\n", len(newurls)) return Print(state) } @@ -89,7 +89,7 @@ func TourAddNext(state *BrowserState, targets []string) error { return saveTours(state.NamedTours) } - state.Modal = []byte(fmt.Sprintf("Added %d urls to go next on the tour\n", len(newurls))) + state.Modal = fmt.Appendf([]byte{}, "Added %d urls to go next on the tour\n", len(newurls)) return Print(state) } @@ -192,7 +192,7 @@ func TourSelect(state *BrowserState, name string) error { } state.CurrentTour = tour - state.Modal = []byte(fmt.Sprintf("Tour %s is now active\n", tourName)) + state.Modal = fmt.Appendf([]byte{}, "Tour %s is now active\n", tourName) return Print(state) } |
