summaryrefslogtreecommitdiff
path: root/lib/diskio
diff options
context:
space:
mode:
Diffstat (limited to 'lib/diskio')
-rw-r--r--lib/diskio/file_blockbuf.go2
-rw-r--r--lib/diskio/file_state_test.go6
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/diskio/file_blockbuf.go b/lib/diskio/file_blockbuf.go
index b7db849..0bb3156 100644
--- a/lib/diskio/file_blockbuf.go
+++ b/lib/diskio/file_blockbuf.go
@@ -99,5 +99,5 @@ func (bf *bufferedFile[A]) WriteAt(dat []byte, off A) (n int, err error) {
bf.blockCache.Delete(blockOffset)
}
- return
+ return n, err
}
diff --git a/lib/diskio/file_state_test.go b/lib/diskio/file_state_test.go
index 3f0c119..32ca705 100644
--- a/lib/diskio/file_state_test.go
+++ b/lib/diskio/file_state_test.go
@@ -1,4 +1,4 @@
-// Copyright (C) 2022 Luke Shumaker <lukeshu@lukeshu.com>
+// Copyright (C) 2022-2023 Luke Shumaker <lukeshu@lukeshu.com>
//
// SPDX-License-Identifier: GPL-2.0-or-later
@@ -21,11 +21,11 @@ func (r byteReaderWithName) Name() string {
return r.name
}
-func (r byteReaderWithName) Close() error {
+func (byteReaderWithName) Close() error {
return nil
}
-func (r byteReaderWithName) WriteAt([]byte, int64) (int, error) {
+func (byteReaderWithName) WriteAt([]byte, int64) (int, error) {
panic("not implemented")
}