snapshots/blockfile: fix lint issue
Signed-off-by: Wei Fu <fuweid89@gmail.com>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user