From 288000a8afad03be7fadf98629a4269699ff8fdf Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 17 Oct 2019 12:18:16 +0300 Subject: [PATCH] storage: drop useless nil assignment in leveldb code golint suggests: Line 24: warning: should drop = nil from declaration of var opts; it is the zero value (golint) --- pkg/core/storage/leveldb_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/core/storage/leveldb_store.go b/pkg/core/storage/leveldb_store.go index b2637744e..31cf8d40b 100644 --- a/pkg/core/storage/leveldb_store.go +++ b/pkg/core/storage/leveldb_store.go @@ -21,7 +21,7 @@ type LevelDBStore struct { // NewLevelDBStore return a new LevelDBStore object that will // initialize the database found at the given path. func NewLevelDBStore(cfg LevelDBOptions) (*LevelDBStore, error) { - var opts *opt.Options = nil // should be exposed via LevelDBOptions if anything needed + var opts *opt.Options // should be exposed via LevelDBOptions if anything needed db, err := leveldb.OpenFile(cfg.DataDirectoryPath, opts) if err != nil {