Skip to content

Commit 3327d53

Browse files
committed
Fix lints
1 parent 1221265 commit 3327d53

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

cmd/cmdg/view_openmessage.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func help(txt string, keys *input.Input) error {
9595
maxlen = n
9696
}
9797
}
98-
screen.Printlnf(0, strings.Repeat("—", screen.Width))
98+
screen.Printlnf(0, "%s", strings.Repeat("—", screen.Width))
9999
for n, l := range lines {
100100
screen.Printlnf(n+1, "%s%s", strings.Repeat(" ", (screen.Width-maxlen)/2), l)
101101
}
@@ -277,7 +277,7 @@ func (ov *OpenMessageView) Draw(lines []string, scroll int) error {
277277
}
278278
}
279279

280-
ov.screen.Printlnf(line, strings.Repeat("—", ov.screen.Width))
280+
ov.screen.Printlnf(line, "%s", strings.Repeat("—", ov.screen.Width))
281281
line++
282282

283283
// Draw body.
@@ -293,7 +293,7 @@ func (ov *OpenMessageView) Draw(lines []string, scroll int) error {
293293
} else {
294294
log.Errorf("Scroll too high! %d >= %d", scroll, len(lines))
295295
}
296-
ov.screen.Printlnf(ov.screen.Height-2, strings.Repeat("—", ov.screen.Width))
296+
ov.screen.Printlnf(ov.screen.Height-2, "%s", strings.Repeat("—", ov.screen.Width))
297297
return nil
298298
}
299299

pkg/cmdg/configure.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ type Config struct {
4949

5050
func readLine(s string) (string, error) {
5151
reader := bufio.NewReader(os.Stdin)
52-
fmt.Printf(s)
52+
fmt.Print(s)
5353
id, err := reader.ReadString('\n')
5454
if err != nil {
5555
return "", err

0 commit comments

Comments
 (0)