Skip to content

Commit

Permalink
don't make .db a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed Feb 17, 2024
1 parent 5082e30 commit f9b6458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goleveldb.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func NewGoLevelDBWithOpts(name string, dir string, o *opt.Options) (*GoLevelDB,
WriteL0SlowdownTrigger: 17,
}
}
dbPath := filepath.Join(dir, name+".db")
dbPath := filepath.Join(dir, name+".db") //nolint:goconst // this is clearer if we do not make it a constant
db, err := leveldb.OpenFile(dbPath, o)
if err != nil {
return nil, err
Expand Down

0 comments on commit f9b6458

Please sign in to comment.