mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

golangci-lint reports the following issue: storage/mvcc/kvstore.go:312:27: (*store).restore - result 0 (error) is always nil (unparam) It's due to the fact that both Attach() and compactLockfree() within the function restore() are able to return an error, but we only log them in the current implementation. Thus, the return value restore() is always nil, hence the linter warning. We have agreed to suppress the linter warning for now [1]. Reference: [1] https://github.com/etcd-io/etcd/pull/18228#issuecomment-2187309957 Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>