diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-06-03 15:49:38 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-06-03 15:54:03 +1000 |
commit | 1932c2366b1cc8bfca634274a1e265ce795e79da (patch) | |
tree | 883145cf4df3dd8b7d4be9d3ec6b7ef9a79e2a8d /pkg/gui/extras_panel.go | |
parent | dd34adb36c072b7bfd34991fdb117d7959efa113 (diff) |
Appease linter
Diffstat (limited to 'pkg/gui/extras_panel.go')
-rw-r--r-- | pkg/gui/extras_panel.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/extras_panel.go b/pkg/gui/extras_panel.go index 927250627..4d607f631 100644 --- a/pkg/gui/extras_panel.go +++ b/pkg/gui/extras_panel.go @@ -72,13 +72,13 @@ type prefixWriter struct { writer io.Writer } -func (self *prefixWriter) Write(p []byte) (n int, err error) { +func (self *prefixWriter) Write(p []byte) (int, error) { if !self.prefixWritten { self.prefixWritten = true // assuming we can write this prefix in one go - _, err = self.writer.Write([]byte(self.prefix)) + n, err := self.writer.Write([]byte(self.prefix)) if err != nil { - return + return n, err } } return self.writer.Write(p) |