From 7f76f442dcd92f774c9d60b01f314af47b7b4f92 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Tue, 5 Sep 2023 19:47:50 +0800 Subject: [PATCH] Revert "ethdb: simple var" This reverts commit 370ad8107482451ec407aaa3c60d2c24f1437145. Signed-off-by: jsvisa --- ethdb/database.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ethdb/database.go b/ethdb/database.go index 75cc545f77..30f047e2cf 100644 --- a/ethdb/database.go +++ b/ethdb/database.go @@ -22,8 +22,10 @@ import ( "io" ) -// ErrNotFound is the errorcode if the requested key does not exist. -var ErrNotFound = errors.New("not found") +var ( + // ErrNotFound is the errorcode if the requested key does not exist. + ErrNotFound = errors.New("not found") +) // KeyValueReader wraps the Has and Get method of a backing data store. type KeyValueReader interface {