forked from TrueCloudLab/neoneo-go
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
|
||||
// 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 {
|
||||
|
|
Loading…
Reference in a new issue