mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 19:42:23 +00:00
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:
parent
ade4abd91f
commit
288000a8af
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue