Skip to content

Commit d5239f5

Browse files
fix(ui): satisfy staticcheck QF1012 in rain list indicators
Co-authored-by: Ben Schellenberger <bschellenberger2600@users.noreply.github.com>
1 parent 1a8a15d commit d5239f5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎internal/ui/rain_run_model.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,15 +221,15 @@ func (m rainRunModel) View() string {
221221

222222
vp := rainListViewportFor(m.scrollOffset, m.cursor, m.rainListCapacity(), total)
223223
if vp.hasAbove {
224-
b.WriteString(fmt.Sprintf(" ↑ %d more\n", vp.offset))
224+
fmt.Fprintf(&b, " ↑ %d more\n", vp.offset)
225225
}
226226
for i := vp.offset; i < vp.end; i++ {
227227
line := m.formatRow(m.rows[i], i == m.cursor)
228228
b.WriteString(line)
229229
b.WriteString("\n")
230230
}
231231
if vp.hasBelow {
232-
b.WriteString(fmt.Sprintf(" ↓ %d more\n", vp.belowCount))
232+
fmt.Fprintf(&b, " ↓ %d more\n", vp.belowCount)
233233
}
234234
return b.String()
235235
}

0 commit comments

Comments
 (0)