Skip to content

Commit e60cc05

Browse files
author
Douglas Wallin
committed
fix: remove unused receiver in attachment view header
1 parent 554cb39 commit e60cc05

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

internal/view/attachment.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (a *Attachment) Render() error {
4848
return tui.PagerOut(a.buf.String())
4949
}
5050

51-
func (a *Attachment) header() []string {
51+
func attachmentHeader() []string {
5252
return []string{
5353
"NAME",
5454
"SIZE",
@@ -57,8 +57,9 @@ func (a *Attachment) header() []string {
5757
}
5858

5959
func (a *Attachment) printHeader() {
60-
n := len(a.header())
61-
for i, h := range a.header() {
60+
header := attachmentHeader()
61+
n := len(header)
62+
for i, h := range header {
6263
_, _ = fmt.Fprintf(a.Writer, "%s", h)
6364
if i != n-1 {
6465
_, _ = fmt.Fprintf(a.Writer, "\t")

0 commit comments

Comments
 (0)