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)
This commit is contained in:
Roman Khimov 2019-10-17 12:18:16 +03:00
parent ade4abd91f
commit 288000a8af

View file

@ -21,7 +21,7 @@ type LevelDBStore struct {
// NewLevelDBStore return a new LevelDBStore object that will // NewLevelDBStore return a new LevelDBStore object that will
// initialize the database found at the given path. // initialize the database found at the given path.
func NewLevelDBStore(cfg LevelDBOptions) (*LevelDBStore, error) { 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) db, err := leveldb.OpenFile(cfg.DataDirectoryPath, opts)
if err != nil { if err != nil {