From b21524c570219083ec61a7498d8c5272f3064fdf Mon Sep 17 00:00:00 2001 From: huangyi Date: Fri, 4 Oct 2024 23:29:08 +0800 Subject: [PATCH] fix lint --- memiavl/tree.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memiavl/tree.go b/memiavl/tree.go index e09954a87e..c67eaf5a29 100644 --- a/memiavl/tree.go +++ b/memiavl/tree.go @@ -157,7 +157,7 @@ func (t *Tree) SaveVersion(updateHash bool) ([]byte, int64, error) { hash = t.RootHash() } - t.version = t.version + 1 + t.version++ return hash, int64(t.version), nil }