diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-03-17 18:38:14 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-03-17 18:38:14 -0400 |
commit | 0f85e72d1331b49b52925d6cc5ad083a0376104c (patch) | |
tree | 9ba66e893d6f66096f6b06284d09c8eb3e50facc /lib/diskio | |
parent | c0f33186aa7a8903c5e7406024f13fad48cd14e3 (diff) | |
parent | 1ea26f04701fa66e36b058f3efb3a6c7059cdc5c (diff) |
Merge branch 'lukeshu/lint'
Diffstat (limited to 'lib/diskio')
-rw-r--r-- | lib/diskio/file_blockbuf.go | 2 | ||||
-rw-r--r-- | lib/diskio/file_iface.go | 3 | ||||
-rw-r--r-- | lib/diskio/file_state_test.go | 6 |
3 files changed, 6 insertions, 5 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_iface.go b/lib/diskio/file_iface.go index 206db0c..d26ffcc 100644 --- a/lib/diskio/file_iface.go +++ b/lib/diskio/file_iface.go @@ -1,7 +1,8 @@ -// 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 +// Package diskio implements utilities for working with disk I/O. package diskio import ( 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") } |