syntax fixes
This commit is contained in:
parent
8e748aaa90
commit
1ce33aa89a
13 changed files with 45 additions and 43 deletions
|
|
@ -10,7 +10,7 @@ import (
|
|||
|
||||
const (
|
||||
defaultBoltBucket = "default"
|
||||
fileMode = 0600
|
||||
fileMode = 0o600
|
||||
)
|
||||
|
||||
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