Skip to content

Commit 19d3ff0

Browse files
committed
Keep newer versions of gofumpt happy
1 parent 64e635a commit 19d3ff0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkg/filesystem/virtual/instance_name_parsing_directory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func (p instanceNameParsingPath) WriteTo(w io.Writer) (nTotal int64, err error)
2828

2929
n, _ := w.Write([]byte("/"))
3030
nTotal += int64(n)
31-
return
31+
return nTotal, err
3232
}
3333

3434
// InstanceNameLookupFunc is called by directories created using

pkg/outputpathpersistency/file_reader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type offsetReader struct {
2323
func (r *offsetReader) Read(p []byte) (n int, err error) {
2424
n, err = r.r.ReadAt(p, r.offset)
2525
r.offset += int64(n)
26-
return
26+
return n, err
2727
}
2828

2929
type fileReader struct {

pkg/outputpathpersistency/file_writer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type offsetWriter struct {
2222
func (w *offsetWriter) Write(p []byte) (n int, err error) {
2323
n, err = w.w.WriteAt(p, w.offsetBytes)
2424
w.offsetBytes += int64(n)
25-
return
25+
return n, err
2626
}
2727

2828
type fileWriter struct {

0 commit comments

Comments
 (0)