snapshots/blockfile: fix lint issue

Signed-off-by: Wei Fu <fuweid89@gmail.com>
This commit is contained in:
Wei Fu 2023-06-17 08:42:02 +08:00
parent 59b0b39af0
commit a207b430e3

View File

@ -101,6 +101,8 @@ func WithRecreateScratch(recreate bool) Opt {
// withViewHookHelper introduces hook for preparing snapshot for View. It // withViewHookHelper introduces hook for preparing snapshot for View. It
// should be used in test only. // should be used in test only.
//
//nolint:nolintlint,unused // not used on all platforms
func withViewHookHelper(fn viewHookHelper) Opt { func withViewHookHelper(fn viewHookHelper) Opt {
return func(_ string, config *SnapshotterConfig) { return func(_ string, config *SnapshotterConfig) {
config.testViewHookHelper = fn config.testViewHookHelper = fn