some lint fixes
This commit is contained in:
parent
88ac31dcd9
commit
9f4fda3c8b
11 changed files with 36 additions and 40 deletions
|
|
@ -10,7 +10,7 @@ import (
|
|||
|
||||
const (
|
||||
defaultBoltBucket = "default"
|
||||
fileMode = 0640
|
||||
fileMode = 0o640
|
||||
)
|
||||
|
||||
type BoltStore struct {
|
||||
|
|
@ -26,7 +26,7 @@ func NewBoltStore(file string, m Marshaler) (Store, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err = db.Update(func(tx *bolt.Tx) (err error) {
|
||||
if err := db.Update(func(tx *bolt.Tx) (err error) {
|
||||
_, err = tx.CreateBucketIfNotExists([]byte(defaultBoltBucket))
|
||||
return
|
||||
}); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue